Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jun 3, 2024
1 parent 37b3131 commit dd21546
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
31 changes: 16 additions & 15 deletions dates/format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,22 @@ func TestFormat(t *testing.T) {
{d1, "//YY--MM::DD..", "eng-US", "//06--01::02..", ""},

// localization
{d1, "EEE EEEE MMM MMMM AA aa", "eng-US", "Mon Monday Jan January PM pm", ""},
{d1, "EEE EEEE MMM MMMM AA aa", "spa-EC", "lun lunes ene enero PM pm", ""},
{d1, "EEE EEEE MMM MMMM AA aa", "ara-QA", "ن الاثنين ينا يناير م م", ""},
{d1, "EEE EEEE MMM MMMM AA aa", "rus", "Пн Понедельник янв января PM pm", ""},
{d1, "EEE EEEE MMM MMMM AA aa", "tir", "ሰኑይ ሰኑይ ጃንዩ ጃንዩወሪ ድሕር ሰዓት ድሕር ሰዓት", ""},
{d2, "EEE EEEE MMM MMMM AA aa", "eng-US", "Sat Saturday Apr April AM am", ""},
{d2, "EEE EEEE MMM MMMM AA aa", "spa-EC", "sáb sábado abr abril AM am", ""},
{d2, "EEE EEEE MMM MMMM AA aa", "ara-QA", "س السبت أبر أبريل ص ص", ""},
{d2, "EEE EEEE MMM MMMM AA aa", "rus", "Сб Суббота апр апреля AM am", ""},
{d2, "EEE EEEE MMM MMMM AA aa", "tir", "ቀዳም ቀዳም ኤፕረ ኤፕረል ንጉሆ ሰዓተ ንጉሆ ሰዓተ", ""},
{d3, "EEE EEEE MMM MMMM AA aa", "eng-US", "Tue Tuesday Dec December PM pm", ""},
{d3, "EEE EEEE MMM MMMM AA aa", "spa-EC", "mar martes dic diciembre PM pm", ""},
{d3, "EEE EEEE MMM MMMM AA aa", "ara-QA", "ث الثلاثاء ديس ديسمبر م م", ""},
{d3, "EEE EEEE MMM MMMM AA aa", "rus", "Вт Вторник дек декабря PM pm", ""},
{d3, "EEE EEEE MMM MMMM AA aa", "tir", "ሰሉስ ሰሉስ ዲሴም ዲሴምበር ድሕር ሰዓት ድሕር ሰዓት", ""},
{d1, "EEE EEEE MMM MMMM AA aa", "eng-US", `Mon Monday Jan January PM pm`, ""},
{d1, "EEE EEEE MMM MMMM AA aa", "spa-EC", `lun lunes ene enero PM pm`, ""},
{d1, "EEE EEEE MMM MMMM AA aa", "spa", `lun lunes ene enero P. M. p. m.`, ""},
{d1, "EEE EEEE MMM MMMM AA aa", "ara-QA", `ن الاثنين ينا يناير م م`, ""},
{d1, "EEE EEEE MMM MMMM AA aa", "rus", `Пн Понедельник янв января PM pm`, ""},
{d1, "EEE EEEE MMM MMMM AA aa", "tir", `ሰኑይ ሰኑይ ጃንዩ ጃንዩወሪ ድሕር ሰዓት ድሕር ሰዓት`, ""},
{d2, "EEE EEEE MMM MMMM AA aa", "eng-US", `Sat Saturday Apr April AM am`, ""},
{d2, "EEE EEEE MMM MMMM AA aa", "spa-EC", `sáb sábado abr abril AM am`, ""},
{d2, "EEE EEEE MMM MMMM AA aa", "ara-QA", `س السبت أبر أبريل ص ص`, ""},
{d2, "EEE EEEE MMM MMMM AA aa", "rus", `Сб Суббота апр апреля AM am`, ""},
{d2, "EEE EEEE MMM MMMM AA aa", "tir", `ቀዳም ቀዳም ኤፕረ ኤፕረል ንጉሆ ሰዓተ ንጉሆ ሰዓተ`, ""},
{d3, "EEE EEEE MMM MMMM AA aa", "eng-US", `Tue Tuesday Dec December PM pm`, ""},
{d3, "EEE EEEE MMM MMMM AA aa", "spa-EC", `mar martes dic diciembre PM pm`, ""},
{d3, "EEE EEEE MMM MMMM AA aa", "ara-QA", `ث الثلاثاء ديس ديسمبر م م`, ""},
{d3, "EEE EEEE MMM MMMM AA aa", "rus", `Вт Вторник дек декабря PM pm`, ""},
{d3, "EEE EEEE MMM MMMM AA aa", "tir", `ሰሉስ ሰሉስ ዲሴም ዲሴምበር ድሕር ሰዓት ድሕር ሰዓት`, ""},

// fractional seconds
{d1, "tt:mm:ss.fff", "eng-US", "15:04:05.123", ""},
Expand Down
2 changes: 1 addition & 1 deletion dates/i18n_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestGetTranslation(t *testing.T) {
{"eng-GB", "Sun", "Sunday", "Jan", "January", "am"},
{"eng", "Sun", "Sunday", "Jan", "January", "AM"},
{"spa-EC", "dom", "domingo", "ene", "enero", "AM"},
{"spa", "dom", "domingo", "ene", "enero", "AM"},
{"spa", "dom", "domingo", `ene`, "enero", `a. m.`},
{"por-BR", "dom", "domingo", "jan", "janeiro", "AM"},
{"por-PT", "dom", "domingo", "jan", "janeiro", "AM"},
{"por", "dom", "domingo", "jan", "janeiro", "AM"},
Expand Down

0 comments on commit dd21546

Please sign in to comment.