Skip to content

Commit

Permalink
fix a test case to pass on Scala 2.13.7
Browse files Browse the repository at this point in the history
reference: scala/scala#9712
  • Loading branch information
SethTisue committed Oct 28, 2021
1 parent bab8b03 commit 7531f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastparse/test/src/fastparse/ExampleTests.scala
Expand Up @@ -196,7 +196,7 @@ object ExampleTests extends TestSuite{
test("flatMap"){
def leftTag[_: P] = P( "<" ~ (!">" ~ AnyChar).rep(1).! ~ ">")
def rightTag[_: P](s: String) = P( "</" ~ s.! ~ ">" )
def xml[_: P] = P( leftTag.flatMap(rightTag) )
def xml[_: P] = P( leftTag.flatMap(rightTag(_)) )

val Parsed.Success("a", _) = parse("<a></a>", xml(_))
val Parsed.Success("abcde", _) = parse("<abcde></abcde>", xml(_))
Expand Down

0 comments on commit 7531f2a

Please sign in to comment.