aboutsummaryrefslogtreecommitdiff
path: root/lexer_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'lexer_test.go')
-rw-r--r--lexer_test.go6
1 files changed, 3 insertions, 3 deletions
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'")
}