From 4e1f1601fe8fb50908348a65cbd68f3f922c5d3b Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Fri, 18 Nov 2016 22:45:49 +0300 Subject: [PATCH] add unicode command test --- eval_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eval_test.go b/eval_test.go index b0631b9..e4a4993 100644 --- a/eval_test.go +++ b/eval_test.go @@ -107,6 +107,12 @@ var gTests = []struct { []Expr{&CmdExpr{"usage", &ExecExpr{"$", "du -h . | less"}}}, }, + { + "cmd 世界 $echo 世界", + []string{"cmd", "世界", "$", "echo 世界", "\n"}, + []Expr{&CmdExpr{"世界", &ExecExpr{"$", "echo 世界"}}}, + }, + { "map u usage", []string{"map", "u", "usage", "\n"},