Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bitfireAT/vcard4android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/androidTest/java/at/bitfire/vcard4android/LocaleNonWesternDigitsTest.kt')
-rw-r--r--src/androidTest/java/at/bitfire/vcard4android/LocaleNonWesternDigitsTest.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/androidTest/java/at/bitfire/vcard4android/LocaleNonWesternDigitsTest.kt b/src/androidTest/java/at/bitfire/vcard4android/LocaleNonWesternDigitsTest.kt
index 823f5db..d1a235f 100644
--- a/src/androidTest/java/at/bitfire/vcard4android/LocaleNonWesternDigitsTest.kt
+++ b/src/androidTest/java/at/bitfire/vcard4android/LocaleNonWesternDigitsTest.kt
@@ -6,7 +6,6 @@ import ezvcard.VCardVersion
import ezvcard.property.Geo
import org.junit.Assert.assertEquals
import org.junit.Before
-import org.junit.ComparisonFailure
import org.junit.Test
import java.util.*
@@ -32,14 +31,14 @@ class LocaleNonWesternDigitsTest {
assertEquals("2020", String.format(Locale.ROOT, "%d", 2020))
}
- @Test(expected = ComparisonFailure::class) // should not fail in future
+ @Test
fun testLocale_ezVCard() {
val vCard = VCard(VCardVersion.V4_0)
vCard.geo = Geo(1.0, 2.0)
assertEquals("BEGIN:VCARD\r\n" +
"VERSION:4.0\r\n" +
- "PRODID:ez-vcard 0.11.1\r\n" +
- "GEO:geo:1.0,2.0\r\n" + // fails: is "GEO:geo:۱.۰,۲.۰\r\n" instead
+ "PRODID:ez-vcard 0.11.2\r\n" +
+ "GEO:geo:1.0,2.0\r\n" + // failed before 0.11.2: was "GEO:geo:۱.۰,۲.۰\r\n" instead
"END:VCARD\r\n", Ezvcard.write(vCard).go())
}