diff options
author | Özgür Kesim <oec@codeblau.de> | 2021-05-07 21:52:26 +0200 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2021-05-07 21:52:26 +0200 |
commit | afd70fad39c8e7e4a7bab4322a9897b7217dc785 (patch) | |
tree | 8d7bebb79b211ed72982d15550b87d575e9eaef1 /combinator_test.go | |
parent | 75b7b13781a355c49889f54110ed07434dec2d95 (diff) | |
parent | e2c58411159b77a6135be3731c4a174f01d9d7a5 (diff) |
Diffstat (limited to 'combinator_test.go')
-rw-r--r-- | combinator_test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/combinator_test.go b/combinator_test.go index 17a0c11..7b1be68 100644 --- a/combinator_test.go +++ b/combinator_test.go @@ -3,7 +3,6 @@ package goparsify import ( "testing" - "fmt" "os" "github.com/stretchr/testify/require" @@ -54,7 +53,7 @@ func TestAny(t *testing.T) { Seq("hello", "world", "."), Seq("hello", "brother"), )) - require.Equal(t, "offset 11: expected .", p2.Error.Error()) + require.Equal(t, "offset 11: expected nope or .", p2.Error.Error()) require.Equal(t, 11, p2.Error.Pos()) require.Equal(t, 0, p2.Pos) }) @@ -80,8 +79,6 @@ func TestAny(t *testing.T) { t.Run("ab a", func(t *testing.T) { node, ps := runParser("ab a", p) - fmt.Println(node) - require.False(t, ps.Errored()) require.Equal(t, "ab", node.Child[0].Token) require.Equal(t, "a", node.Child[1].Token) |