Add tests for German dates, enable splitting of 5 digit timespans
This commit is contained in:
@ -255,6 +255,28 @@ final class NodaTimeAutotranslaterTest extends TestCase {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test to check whether the HTML page is correctly generated.
|
||||
*
|
||||
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||
* @group ValidOutput
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testCanTranslateSingleThreeDigitYearBeforeCommonEra():void {
|
||||
|
||||
$timeInfo = [
|
||||
"zeit_beginn" => "-100",
|
||||
"zeit_ende" => "-100",
|
||||
"zeit_zaehlzeit_jahr" => "100",
|
||||
"zeit_zaehlzeit_monat" => "00",
|
||||
"zeit_zaehlzeit_tag" => "00",
|
||||
];
|
||||
$output = NodaTimeAutotranslater::getTranslations($timeInfo);
|
||||
self::assertEquals($output["de"], "100 v. Chr.");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test to check whether the HTML page is correctly generated.
|
||||
*
|
||||
|
Reference in New Issue
Block a user