From 2eb84a40e441eced16702e74e62befa7314f44fb Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 18 Apr 2016 14:41:24 +0200 Subject: broken --- lexer_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lexer_test.go') diff --git a/lexer_test.go b/lexer_test.go index 659ea6c..e5b4b70 100644 --- a/lexer_test.go +++ b/lexer_test.go @@ -10,7 +10,7 @@ func testInput(t *testing.T, ty int, s ...string) { if input[0] == '\'' { input = input[1 : len(input)-1] } - if typ != ty || yy.sval != S(input) { + if typ != ty || yy.sval != input { t.Error("expeced", input, "got", yy.sval) } } @@ -29,9 +29,9 @@ func TestComplex(t *testing.T) { } func TestString(t *testing.T) { - testInput(t, STRING, "abc") + testInput(t, STRING, "abc", "abc xyz") } func TestQuoted(t *testing.T) { - testInput(t, QUOTED, "'abc''xyz'") + testInput(t, QUOTED, "'abc'", "'abc''xyz'") } -- cgit v1.2.3