Skip to content

Commit

Permalink
Reduce the number of locales used by the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Aug 11, 2024
1 parent 87e1d72 commit afb5b3d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions tests/Core/LocalizedLocaleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public static function provide_test_get_name(): array
public function test_localize(): void
{
$locale = new Locale(get_repository(), LocaleId::of('fr'));
$localized = $locale->localized(LocaleId::of('es'));
$localized = $locale->localized(LocaleId::of('ja'));
$this->assertInstanceOf(LocaleLocalized::class, $localized);
$this->assertEquals("francés", $localized->name);
$this->assertEquals("フランス語", $localized->name);
}
}
10 changes: 5 additions & 5 deletions tests/Dates/LocalizedDateTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function setupBeforeClass(): void

self::$localized_dates['en'] = new LocalizedDateTime($datetime, locale_for('en'));
self::$localized_dates['fr'] = new LocalizedDateTime($datetime, locale_for('fr'));
self::$localized_dates['zh'] = new LocalizedDateTime($datetime, locale_for('zh'));
self::$localized_dates['ja'] = new LocalizedDateTime($datetime, locale_for('ja'));
}

public function test_get_target(): void
Expand Down Expand Up @@ -77,10 +77,10 @@ public static function provide_test_as(): array
[ 'fr', DateTimeFormatLength::MEDIUM, "4 nov. 2013, 20:21:22" ],
[ 'fr', DateTimeFormatLength::SHORT, "04/11/2013 20:21" ],

[ 'zh', DateTimeFormatLength::FULL, "2013年11月4日星期一 UTC 20:21:22" ],
[ 'zh', DateTimeFormatLength::LONG, "2013年11月4日 UTC 20:21:22" ],
[ 'zh', DateTimeFormatLength::MEDIUM, "2013年11月4日 20:21:22" ],
[ 'zh', DateTimeFormatLength::SHORT, "2013/11/4 20:21" ],
[ 'ja', DateTimeFormatLength::FULL, "2013年11月4日月曜日 20時21分22秒 UTC" ],
[ 'ja', DateTimeFormatLength::LONG, "2013年11月4日 20:21:22 UTC" ],
[ 'ja', DateTimeFormatLength::MEDIUM, "2013/11/04 20:21:22" ],
[ 'ja', DateTimeFormatLength::SHORT, "2013/11/04 20:21" ],

];
}
Expand Down
8 changes: 4 additions & 4 deletions tests/Numbers/NumbersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,20 @@ public static function provide_symbols(): array
)
],
[
'ru',
'ja',
new Symbols(
'.',
',',
' ',
';',
'%',
'-',
'+',
'',
'',
'E',
'×',
'',
'',
'не число',
'NaN',
'.',
',',
':'
Expand Down
4 changes: 2 additions & 2 deletions tests/Supplemental/Territory/TerritoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static function provide_test_name_as(): array

[ "France", "FR", "fr" ],
[ "France", "FR", "fr-BE" ],
[ "Francia", "FR", "it" ],
[ "Frankreich", "FR", "de" ],
[ "フランス", "FR", "ja" ]

];
Expand All @@ -147,7 +147,7 @@ public static function provide_test_get_name_as(): array

[ "France", "FR", "fr" ],
[ "France", "FR", "fr_BE" ],
[ "Francia", "FR", "it" ],
[ "Frankreich", "FR", "de" ],
[ "フランス", "FR", "ja" ]

];
Expand Down

0 comments on commit afb5b3d

Please sign in to comment.