diff options
author | Ricki Hirner <hirner@bitfire.at> | 2020-11-09 16:05:53 +0300 |
---|---|---|
committer | Ricki Hirner <hirner@bitfire.at> | 2020-11-09 16:10:53 +0300 |
commit | 4d3d96fb2052a75a3af591cc39b19304ca2fd472 (patch) | |
tree | 7161255d073150b1a7b4bdba1afa660f9c06a0e6 | |
parent | aab5201325daa199b1298329aee6cbbb3c2f9e6b (diff) |
Update ez-vcard
-rw-r--r-- | build.gradle | 2 | ||||
-rw-r--r-- | src/androidTest/java/at/bitfire/vcard4android/LocaleNonWesternDigitsTest.kt | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle index 9ad9dab..aa90f8c 100644 --- a/build.gradle +++ b/build.gradle @@ -82,7 +82,7 @@ dependencies { implementation "org.apache.commons:commons-text:${versions.commonsText}" // ez-vcard to parse/generate vCards - api('com.googlecode.ez-vcard:ez-vcard:0.11.1') { + api('com.googlecode.ez-vcard:ez-vcard:0.11.2') { // hCard functionality not needed exclude group: 'org.jsoup' exclude group: 'org.freemarker' 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()) } |