Skip to content

Commit 854056e

Browse files
Update error messages: choice is now right-associative
1 parent 4d27d3a commit 854056e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/src/Interval.purs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,21 @@ invalidDurations =
8888

8989
invalidIntervals :: Array { err :: String, str :: String }
9090
invalidIntervals =
91-
[ { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00ZP1Y2M10DT2H30M" }
92-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z-P1Y2M10D" }
93-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z~P1Y2M10D" }
91+
[ { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00ZP1Y2M10DT2H30M" }
92+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z-P1Y2M10D" }
93+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z~P1Y2M10D" }
9494
, { err: "Expected EOF (line 1, col 15)", str: "P1Y2M10DT2H30M2007-03-01T13:00:00Z" }
9595
, { err: "Expected EOF (line 1, col 9)", str: "P1Y2M10D-2007-03-01T13:00:00Z" }
9696
, { err: "Expected EOF (line 1, col 9)", str: "P1Y2M10D~2007-03-01T13:00:00Z" }
97-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z2008-05-11T15:30:00Z" }
98-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z-2008-05-11T15:30:00Z" }
99-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z~2008-05-11T15:30:00Z" }
100-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z/" }
101-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z/P" }
102-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z/PT" }
103-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z/2010-0-09" }
104-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z/2010-05-09T103012+0400" }
105-
, { err: "Expected \"P\" (line 1, col 1)", str: "2007-03-01T13:00:00Z/2014-W15-02T10:11:12Z" }
97+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z2008-05-11T15:30:00Z" }
98+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z-2008-05-11T15:30:00Z" }
99+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z~2008-05-11T15:30:00Z" }
100+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z/" }
101+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z/P" }
102+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z/PT" }
103+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z/2010-0-09" }
104+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z/2010-05-09T103012+0400" }
105+
, { err: "No alternative (line 1, col 1)", str: "2007-03-01T13:00:00Z/2014-W15-02T10:11:12Z" }
106106
, { err: "Expected EOF (line 1, col 9)", str: "P1Y2M10D/P1Y2M10D" }
107107
, { err: "Expected EOF (line 1, col 8)", str: "P1Y0.5M/P1Y0.5M" }
108108
]

0 commit comments

Comments
 (0)