From 0894c25f2cf9eab62e9abe4410081627faf1cd8b Mon Sep 17 00:00:00 2001 From: rw Date: Wed, 20 May 2015 14:19:49 -0700 Subject: [PATCH] Improve comment for unicode check. --- tests/go_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/go_test.go b/tests/go_test.go index 143c7d6..070045a 100644 --- a/tests/go_test.go +++ b/tests/go_test.go @@ -536,7 +536,11 @@ func CheckByteLayout(fail func(string, ...interface{})) { // test 6b: CreateString unicode b = flatbuffers.NewBuilder(0) - b.CreateString("\u65e5\u672c\u8a9e") // chinese from blog.golang.org/strings + // These characters are chinese from blog.golang.org/strings + // We use escape codes here so that editors without unicode support + // aren't bothered: + uni_str := "\u65e5\u672c\u8a9e" + b.CreateString(uni_str) check([]byte{9, 0, 0, 0, 230, 151, 165, 230, 156, 172, 232, 170, 158, 0, // null-terminated, 2-byte pad 0, 0}) -- 2.7.4