Closed marcchehab closed 1 year ago
These two tests produce fail even later in the chapter when the class Either is corrected, principally because they miss a .match("ac") and a .match("ax"), respectively.
.match("ac")
.match("ax")
def test_either_followed_by_literal_match(): # /{a,b}c/ matches "ac" assert Either(Lit("a"), Lit("b"), Lit("c")) def test_either_followed_by_literal_no_match(): # /{a,b}c/ doesn't match "ax" assert not Either(Lit("a"), Lit("b"), Lit("x"))
These two tests produce fail even later in the chapter when the class Either is corrected, principally because they miss a
.match("ac")
and a.match("ax")
, respectively.