Skip to content

Commit c98e581

Browse files
committed
More tests for either aggregation
1 parent 363a856 commit c98e581

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

fastparse/test/src/fastparse/FailureTests.scala

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,15 @@ object FailureTests extends TestSuite{
322322
)
323323
'either2 - checkOffset(
324324
input = "ax",
325-
expected = """("b" | "c" | "d")""",
326-
label = "\"d\"",
327-
parser = {implicit c => ("a" ~ "b" | "a" ~ "c" | "") ~ "a" ~ "d" }
325+
expected = """("b" | "c" | "d" | "e")""",
326+
label = "\"e\"",
327+
parser = {implicit c => (("a" ~ "b" | "a" ~ "c") | "a" ~ "d" | "") ~ "a" ~ "e" }
328+
)
329+
'either3 - checkOffset(
330+
input = "ax",
331+
expected = """("b" | "c" | "d" | "e")""",
332+
label = "\"e\"",
333+
parser = {implicit c => ("a" ~ "b" | ("a" ~ "c" | "a" ~ "d") | "") ~ "a" ~ "e" }
328334
)
329335

330336
'opEither - checkOffset(

0 commit comments

Comments
 (0)