Skip to content

Commit

Permalink
add test for far future dates
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Mar 7, 2023
1 parent 0bf3148 commit 32b2c5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xtests/details-view-dates.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ stderr = { empty = true }
status = 0
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

Expand Down
2 changes: 2 additions & 0 deletions xtests/outputs/far_dates_relative.ansitxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.rw-rw-r-- 0 vagrant now beyond-the-future
.rw-rw-r-- 0 vagrant now the-distant-past

0 comments on commit 32b2c5b

Please sign in to comment.