diff options
author | Robert Griesemer <gri@golang.org> | 2008-03-26 16:12:43 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2008-03-26 16:12:43 -0700 |
commit | b9829f88caae9d67410240956843ea812d44fe22 (patch) | |
tree | 97ea4ff4f2116cdaffd988917aad0a788ec6454b /test | |
parent | 966105d2c48faf6656dea26761c910f14399f60e (diff) | |
download | golang-b9829f88caae9d67410240956843ea812d44fe22.tar.gz |
- Make Coco/R-based parser work w/ UTF-8 encoded files even if there is
no (optional) UTF-8 marker present.
SVN=113931
Diffstat (limited to 'test')
-rw-r--r-- | test/char_lit.go | 5 | ||||
-rwxr-xr-x | test/runtests.sh | 3 | ||||
-rw-r--r-- | test/string_lit.go | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/test/char_lit.go b/test/char_lit.go index 66ffec208..6af96be9c 100644 --- a/test/char_lit.go +++ b/test/char_lit.go @@ -9,9 +9,8 @@ package main func main() { [ ' ', 'a', - // need to fix Coco/R scanner to read Unicode. - // 'ä', - //'本', + 'ä', + '本', '\a', '\b', '\f', diff --git a/test/runtests.sh b/test/runtests.sh index 48f512a4f..9fb0f0ab1 100755 --- a/test/runtests.sh +++ b/test/runtests.sh @@ -3,6 +3,7 @@ # license that can be found in the LICENSE file. #!/bin/bash +GO=$1 for f in *.go; do - go $f + $GO $f done diff --git a/test/string_lit.go b/test/string_lit.go index 568e7a511..87f7dae3a 100644 --- a/test/string_lit.go +++ b/test/string_lit.go @@ -11,8 +11,8 @@ func main() { " ", "'`", "a", - //"ä", - //"本", + "ä", + "本", "\a\b\f\n\r\t\v\\\'\"", "\000\123\x00\xca\xFE\u0123\ubabe\U0123ABCD\Ucafebabe", @@ -20,8 +20,8 @@ func main() { ` `, `'"`, `a`, - //`ä`, - //`本`, + `ä`, + `本`, `\a\b\f\n\r\t\v\\\'\"`, `\000\123\x00\xca\xFE\u0123\ubabe\U0123ABCD\Ucafebabe`, `\x\u\U\` |