1package com.peachpasswords.shared23import org.junit.Assert.assertFalse4import org.junit.Assert.assertTrue5import org.junit.Test67class DomainUtilsTest {8 @Test fun detect_homograph_flags_unicode_hosts() {9 assertTrue(detectHomograph("https://аpple.com"))10 }1112 @Test fun detect_homograph_flags_punycode_hosts() {13 assertTrue(detectHomograph("https://xn--pple-43d.com"))14 assertTrue(detectHomograph("xn--pple-43d.com"))15 }1617 @Test fun detect_homograph_ignores_plain_ascii_and_invalid_urls() {18 assertFalse(detectHomograph("https://apple.com"))19 assertFalse(detectHomograph(""))20 assertFalse(detectHomograph("http://"))21 }22}