diff options
author | coderzh <pythonzh@gmail.com> | 2015-09-03 18:22:20 +0800 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2015-09-12 15:41:17 +0200 |
commit | 0e1fd78fb22e8a870ff3a922f36a9a4d0475c090 (patch) | |
tree | 48a0a74ba70aaf33bcc9f9d1d48576109500ae94 /helpers/content_test.go | |
parent | c7521b3d672b8d857bfe698f021c498dd27226c9 (diff) |
WordCount Summary support UTF-8 string
Diffstat (limited to 'helpers/content_test.go')
-rw-r--r-- | helpers/content_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helpers/content_test.go b/helpers/content_test.go index 602ca3785..f614011c0 100644 --- a/helpers/content_test.go +++ b/helpers/content_test.go @@ -54,6 +54,8 @@ func TestTruncateWordsToWholeSentence(t *testing.T) { {"a b c", "a b c", 12, false}, {"a b c", "a b c", 3, false}, {"a", "a", 1, false}, + {"Hello 中国", "Hello 中", 2, true}, + {"Hello 中国", "Hello 中国", 3, false}, {"This is a sentence.", "This is a sentence.", 5, false}, {"This is also a sentence!", "This is also a sentence!", 1, false}, {"To be. Or not to be. That's the question.", "To be.", 1, true}, |