use of android.icu.text.SpoofChecker in project j2objc by google.
the class SpoofCheckerTest method testCopyConstructor.
@Test
public void testCopyConstructor() {
SpoofChecker sc1 = new SpoofChecker.Builder().setAllowedChars(SpoofChecker.RECOMMENDED).setChecks(SpoofChecker.ALL_CHECKS & ~SpoofChecker.INVISIBLE).build();
SpoofChecker sc2 = new SpoofChecker.Builder(sc1).build();
assertEquals("Copy constructor should produce identical instances", sc1, sc2);
}
Aggregations