diff options
author | Adam Scarr <adam@vektah.net> | 2017-08-13 19:27:41 +1000 |
---|---|---|
committer | Adam Scarr <adam@vektah.net> | 2017-08-13 19:27:41 +1000 |
commit | a4677a5834210c85e050de6dad13911a85297499 (patch) | |
tree | 0e0802a75478a10b4765fced5eb8c5ddd92183cc /parser_test.go | |
parent | 5716ddb5e7ca3cb4ee445bdd4958c37aeb033baa (diff) |
Clean up autows
Diffstat (limited to 'parser_test.go')
-rw-r--r-- | parser_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parser_test.go b/parser_test.go index c64b70a..ce5f3e7 100644 --- a/parser_test.go +++ b/parser_test.go @@ -201,13 +201,13 @@ func TestAutoWS(t *testing.T) { }) t.Run("ws is can be explicitly consumed ", func(t *testing.T) { - result, ps := runParser(" hello", NoAutoWS(Seq(WS(), "hello"))) + result, ps := runParser(" hello", NoAutoWS(Seq(ASCIIWhitespace, "hello"))) require.Equal(t, "hello", result.Child[1].Token) require.Equal(t, "", ps.Get()) }) t.Run("unicode whitespace", func(t *testing.T) { - result, ps := runParser(" \u202f hello", NoAutoWS(Seq(WS(), "hello"))) + result, ps := runParser(" \u202f hello", NoAutoWS(Seq(UnicodeWhitespace, "hello"))) require.Equal(t, "hello", result.Child[1].Token) require.Equal(t, "", ps.Get()) require.False(t, ps.Errored()) |