diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-06 15:43:23 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-06 15:43:23 +1000 |
commit | 8b343d6360d0edc065b9b62ab5e708e907b45a92 (patch) | |
tree | d58b76b21e5a369e25e7c3807f5f466cbcd849ad /combinator_test.go | |
parent | 68cde88125e1f016c5706ca8d0b3db6ba06624a2 (diff) |
Clean up Pointer
Diffstat (limited to 'combinator_test.go')
-rw-r--r-- | combinator_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/combinator_test.go b/combinator_test.go index 8c0bab0..2bec734 100644 --- a/combinator_test.go +++ b/combinator_test.go @@ -20,7 +20,7 @@ func TestAnd(t *testing.T) { t.Run("matches sequence", func(t *testing.T) { node, p2 := And("hello", WS, "world")(p) require.Equal(t, NewSequence(0, NewToken(0, "hello"), NewToken(6, "world")), node) - require.Equal(t, 0, p2.Remaining()) + require.Equal(t, "", p2.Get()) }) t.Run("returns errors", func(t *testing.T) { |