Skip to content

Commit

Permalink
Remove duplicate assert for already existing formatter
Browse files Browse the repository at this point in the history
time_short uses the same formatter as date_short but causes tests to fail because of different white spaces
  • Loading branch information
SenseException committed Jan 7, 2025
1 parent 19057b8 commit d9805b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ private function assertFormats(IntlFormatInterface $intlFormat): void
self::assertSame('I got 1,002.2500 as average value', $intlFormat->format('I got %.4number as average value', 1002.25));
self::assertSame('I got 01,002.2500 as average value', $intlFormat->format('I got %011.4number as average value', 1002.25));
self::assertSame('I got 1,002.3 as average value', $intlFormat->format('I got %.1number_halfway_up as average value', 1002.25));
self::assertSame('I is 5:30 AM on my clock.', $intlFormat->format('I is %time_short on my clock.', $date));
self::assertSame('The timezone id is US/Arizona.', $intlFormat->format('The timezone id is %timezone_id.', $date));
self::assertSame('I am from Italy.', $intlFormat->format('I am from %region.', 'it_IT'));
self::assertSame('You have 10$.', $intlFormat->format('You have 10%currency_symbol.', ''));
Expand All @@ -78,7 +77,6 @@ public function testSprintF(): void
self::assertSame('I got 1,002.2500 as average value', sprintf('I got %.4number as average value', 1002.25));
self::assertSame('I got 01,002.2500 as average value', sprintf('I got %011.4number as average value', 1002.25));
self::assertSame('I got 1,002.3 as average value', sprintf('I got %.1number_halfway_up as average value', 1002.25));
self::assertSame('I is 5:30 AM on my clock.', sprintf('I is %time_short on my clock.', $date));
self::assertSame('The timezone id is US/Arizona.', sprintf('The timezone id is %timezone_id.', $date));
self::assertSame('I am from Italy.', sprintf('I am from %region.', 'it_IT'));
self::assertSame('You have 10$.', sprintf('You have 10%currency_symbol.', ''));
Expand Down

0 comments on commit d9805b7

Please sign in to comment.