Skip to content

Commit

Permalink
String.parseLocale(): Add test for empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Sep 25, 2023
1 parent b21c477 commit 809e234
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ class LocaleTest {
fun `Language should be lower cased for consistency with Android`() {
"EN-gb".parseLocale().language shouldBe "en"
}

@Test
fun `Empty string should be allowed`() {
"".parseLocale().language shouldBe ""
}
}

@Nested
Expand Down

0 comments on commit 809e234

Please sign in to comment.