Denis Cornehl 3 лет назад
Родитель
Сommit
32b2c5b2f3
2 измененных файлов с 9 добавлено и 0 удалено
  1. 7 0
      xtests/details-view-dates.toml
  2. 2 0
      xtests/outputs/far_dates_relative.ansitxt

+ 7 - 0
xtests/details-view-dates.toml

@@ -35,6 +35,13 @@ stderr = { empty = true }
 status = 0
 status = 0
 tags = [ 'long', 'time' ]
 tags = [ 'long', 'time' ]
 
 
+[[cmd]]
+name = "‘exa -l --time-style=relative’ handles dates far past and future dates"
+shell = "exa -l --time-style=relative /testcases/far-dates"
+stdout = { file = "outputs/far_dates_relative.ansitxt" }
+stderr = { empty = true }
+status = 0
+tags = [ 'long', 'time' ]
 
 
 # alternate date formats
 # alternate date formats
 
 

+ 2 - 0
xtests/outputs/far_dates_relative.ansitxt

@@ -0,0 +1,2 @@
+.rw-rw-r-- 0 vagrant now beyond-the-future
+.rw-rw-r-- 0 vagrant now the-distant-past