Add a test checking that date of the current year follows locale

This commit is contained in:
ariasuni 2021-04-09 18:46:10 +02:00
parent 3a8005c840
commit f673e018b5
2 changed files with 50 additions and 2 deletions

View File

@ -68,7 +68,7 @@ tags = [ 'long', 'time-style' ]
[[cmd]]
name = "exa -l using a locale with 4-character-long month abbreviations (ja_JP) sizes the date column correctly"
shell = "exa -l /testcases/dates"
environment = { LC_ALL = "ja_JP.UTF-8", LANG = "ja_JP.UTF-8" }
environment = { LC_TIME = "ja_JP.UTF-8", LANG = "ja_JP.UTF-8" }
stdout = { file = "outputs/dates_long_localejp.ansitxt" }
stderr = { empty = true }
status = 0
@ -77,8 +77,17 @@ tags = [ 'long', 'locales' ]
[[cmd]]
name = "exa -l using a locale with 5-character-long month abbreviations (fr_FR) sizes the date column correctly"
shell = "exa -l /testcases/dates"
environment = { LC_ALL = "fr_FR.UTF-8", LANG = "fr_FR.UTF-8" }
environment = { LC_TIME = "fr_FR.UTF-8", LANG = "fr_FR.UTF-8" }
stdout = { file = "outputs/dates_long_localefr.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'locales' ]
[[cmd]]
name = "exa -l using a locale (fr_FR) display dates of the current year with localized month name"
shell = "exa -l /testcases/files"
environment = { LC_TIME = "fr_FR.UTF-8", LANG = "fr_FR.UTF-8" }
stdout = { file = "outputs/dates_long_currentyear_localefr.ansitxt" }
stderr = { empty = true }
status = 0
tags = [ 'long', 'locales' ]

View File

@ -0,0 +1,39 @@
.rw-r--r-- 1 cassowary  1 janv. 12:34 1_bytes
.rw-r--r-- 1,0k cassowary  1 janv. 12:34 1_KiB
.rw-r--r-- 1,0M cassowary  1 janv. 12:34 1_MiB
.rw-r--r-- 2 cassowary  1 janv. 12:34 2_bytes
.rw-r--r-- 2,0k cassowary  1 janv. 12:34 2_KiB
.rw-r--r-- 2,1M cassowary  1 janv. 12:34 2_MiB
.rw-r--r-- 3 cassowary  1 janv. 12:34 3_bytes
.rw-r--r-- 3,1k cassowary  1 janv. 12:34 3_KiB
.rw-r--r-- 3,1M cassowary  1 janv. 12:34 3_MiB
.rw-r--r-- 4 cassowary  1 janv. 12:34 4_bytes
.rw-r--r-- 4,1k cassowary  1 janv. 12:34 4_KiB
.rw-r--r-- 4,2M cassowary  1 janv. 12:34 4_MiB
.rw-r--r-- 5 cassowary  1 janv. 12:34 5_bytes
.rw-r--r-- 5,1k cassowary  1 janv. 12:34 5_KiB
.rw-r--r-- 5,2M cassowary  1 janv. 12:34 5_MiB
.rw-r--r-- 6 cassowary  1 janv. 12:34 6_bytes
.rw-r--r-- 6,1k cassowary  1 janv. 12:34 6_KiB
.rw-r--r-- 6,3M cassowary  1 janv. 12:34 6_MiB
.rw-r--r-- 7 cassowary  1 janv. 12:34 7_bytes
.rw-r--r-- 7,2k cassowary  1 janv. 12:34 7_KiB
.rw-r--r-- 7,3M cassowary  1 janv. 12:34 7_MiB
.rw-r--r-- 8 cassowary  1 janv. 12:34 8_bytes
.rw-r--r-- 8,2k cassowary  1 janv. 12:34 8_KiB
.rw-r--r-- 8,4M cassowary  1 janv. 12:34 8_MiB
.rw-r--r-- 9 cassowary  1 janv. 12:34 9_bytes
.rw-r--r-- 9,2k cassowary  1 janv. 12:34 9_KiB
.rw-r--r-- 9,4M cassowary  1 janv. 12:34 9_MiB
.rw-r--r-- 10 cassowary  1 janv. 12:34 10_bytes
.rw-r--r-- 10k cassowary  1 janv. 12:34 10_KiB
.rw-r--r-- 10M cassowary  1 janv. 12:34 10_MiB
.rw-r--r-- 11 cassowary  1 janv. 12:34 11_bytes
.rw-r--r-- 11k cassowary  1 janv. 12:34 11_KiB
.rw-r--r-- 12M cassowary  1 janv. 12:34 11_MiB
.rw-r--r-- 12 cassowary  1 janv. 12:34 12_bytes
.rw-r--r-- 12k cassowary  1 janv. 12:34 12_KiB
.rw-r--r-- 13M cassowary  1 janv. 12:34 12_MiB
.rw-r--r-- 13 cassowary  1 janv. 12:34 13_bytes
.rw-r--r-- 13k cassowary  1 janv. 12:34 13_KiB
.rw-r--r-- 14M cassowary  1 janv. 12:34 13_MiB