We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4719736 commit dcde67aCopy full SHA for dcde67a
shared/src/test/scala/scala/util/parsing/combinator/t6067.scala
@@ -0,0 +1,19 @@
1
+import scala.util.parsing.combinator._
2
+
3
+import org.junit.Test
4
+import org.junit.Assert.assertEquals
5
6
+class t6067 extends RegexParsers {
7
+ object TestParser extends RegexParsers {
8
+ def p: TestParser.ParseResult[TestParser.~[List[String], String]] = parseAll(rep(commit("a")) ~ "b", "aaab")
9
+ }
10
11
+ val expected = """[1.4] error: 'a' expected but 'b' found
12
13
+aaab
14
+ ^"""
15
+ @Test
16
+ def test: Unit = {
17
+ assertEquals(expected, TestParser.p.toString)
18
19
+}
0 commit comments