Skip to content

Commit a5af482

Browse files
committed
Verify in test that latin variant is not picked for sr locale
1 parent cc35da3 commit a5af482

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/Carbon/LocalizationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public function testSetLocaleToAutoFromSupportedLocale(string $language, array $
7979
}
8080

8181
$this->assertStringStartsWith($language, $locale);
82+
$this->assertStringNotContainsString($language, '_Latn');
8283
$this->assertSame($twoSecondsAgo, $diff);
8384
}
8485

tests/CarbonImmutable/LocalizationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public function testSetLocaleToAutoFromSupportedLocale(string $language, array $
8383
}
8484

8585
$this->assertStringStartsWith($language, $locale);
86+
$this->assertStringNotContainsString($language, '_Latn');
8687
$this->assertSame($twoSecondsAgo, $diff);
8788
}
8889

0 commit comments

Comments
 (0)