Skip to content

Commit

Permalink
Add tests for locale
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoRSeifert committed Sep 4, 2024
1 parent 5d566af commit 8898466
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -307,5 +307,12 @@ test_eval 'weekday("2019-03-21")' '4'
test_eval 'weekday("2014-03-21T21:03")' '5'
test_eval 'weekday("2015-03-21T21:03")' '6'

# weekday with date and locale'
test_eval 'weekday("2021-03-21", "nb")' '"Søndag"'
test_eval 'weekday("2016-03-21", "zh-CN")' '"星期一"'
test_eval 'weekday("2017-03-21", "fr-FR")' '"Mardi"'
test_eval 'weekday("2018-03-21", "th-TH")' '"วันพุธ"'
test_eval 'weekday("2019-03-21", "pt-BR")' '"Quinta-feira"'

echo "All tests passed!"

0 comments on commit 8898466

Please sign in to comment.