Skip to content

Commit

Permalink
ivy: fix time-zone sensitive test in testdata/sys.ivy
Browse files Browse the repository at this point in the history
Until time zone support is in (issue #135), this will have to do.

Fixes #151
  • Loading branch information
robpike committed Aug 11, 2023
1 parent c9fbf79 commit 71f06f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testdata/sys.ivy
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ t = sys 'time'; (3000>=t[1]) (12>=t[2]) (31>=t[3]) (24>=t[4]) (60>=t[5]) (61 >=
rho 'T' encode sys 'sec'
6

('T' encode 0)[1 2 3]
1970 1 1
# Gives 1969 12 31 one side of the data line, 1970 1 1 on the other
(1970 1 1 == x) | ((1969 12 31 == x =('T' encode 0)[1 2 3]))
1 1 1


'T' decode 'T' encode 0
0
Expand Down

0 comments on commit 71f06f4

Please sign in to comment.