summaryrefslogtreecommitdiff
path: root/combinator_test.go
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-15 18:57:00 +1000
committerAdam Scarr <adam@vektah.net>2017-08-15 18:57:00 +1000
commit0f854720ca2bad30246020bb01cdb903a5f9406d (patch)
treef4acedaa6928300fecd7791a68cc493c37938e5e /combinator_test.go
parentddb61bdfc034a683f755dec6ddc80627d2d43522 (diff)
Make until only work on string terminators
Diffstat (limited to 'combinator_test.go')
-rw-r--r--combinator_test.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/combinator_test.go b/combinator_test.go
index e792c47..c1eedb3 100644
--- a/combinator_test.go
+++ b/combinator_test.go
@@ -181,20 +181,6 @@ func TestMap(t *testing.T) {
})
}
-func TestUntil(t *testing.T) {
- parser := Until("world", ".")
-
- t.Run("success", func(t *testing.T) {
- result, _ := runParser("this is the end of the world", parser)
- require.Equal(t, "this is the end of the ", result.Token)
- })
-
- t.Run("eof", func(t *testing.T) {
- result, _ := runParser("this is the end of it all", parser)
- require.Equal(t, "this is the end of it all", result.Token)
- })
-}
-
func TestBind(t *testing.T) {
parser := Bind("true", true)