aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-04-18 14:41:24 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-04-18 14:41:24 +0200
commit2eb84a40e441eced16702e74e62befa7314f44fb (patch)
tree169a7f6f21c7a42128a0bdfe7226a935f02db53d
parente7db64c40bb39263288ba2dbcca812e0cd369007 (diff)
broken
-rw-r--r--autocorrect.go20
-rw-r--r--lexer_test.go6
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'")
}