From 2eb84a40e441eced16702e74e62befa7314f44fb Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 18 Apr 2016 14:41:24 +0200 Subject: broken --- autocorrect.go | 20 ++++++++++---------- lexer_test.go | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/autocorrect.go b/autocorrect.go index 31d5657..6071958 100644 --- a/autocorrect.go +++ b/autocorrect.go @@ -60,14 +60,14 @@ var AutoCorrect = map[rune]rune{ ';': '⍎', '\'': '⍕', '~': '⋄', - '<': '⍝', - ']': '→', - 'w': '⍵', - 'a': '⍺', - 'g': '∇', - '2': '¯', - '}': '⍬', - 'k': '\'', - 'K': '⌸', - 'J': '⍤', + //'<': '⍝', + ']': '→', + 'w': '⍵', + 'a': '⍺', + 'g': '∇', + '2': '¯', + '}': '⍬', + 'k': '\'', + 'K': '⌸', + 'J': '⍤', } 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