summaryrefslogtreecommitdiff
path: root/tests/modules/os/test.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-26 00:07:17 +0800
committerruki <[email protected]>2020-03-25 18:43:45 +0800
commit493fffe734e944e153c04bbe46e77c2069581f47 (patch)
tree456f14038827fad4f33f1cc64a7c8d9d01e9ca79 /tests/modules/os/test.lua
parentc570330bbc7fd11410985a46486e7c5edc66d9bf (diff)
improve os.args
Diffstat (limited to 'tests/modules/os/test.lua')
-rw-r--r--tests/modules/os/test.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/modules/os/test.lua b/tests/modules/os/test.lua
index 02d027e25..407421a5c 100644
--- a/tests/modules/os/test.lua
+++ b/tests/modules/os/test.lua
@@ -83,4 +83,5 @@ function test_args(t)
t:are_equal(os.args({"aa\\bb/cc dd", "ee"}), "\"aa\\\\bb/cc dd\" ee")
t:are_equal(os.args({"aa\\bb/cc (dd)", "ee"}), "\"aa\\\\bb/cc (dd)\" ee")
t:are_equal(os.args("-D__prefix__=\"tbox\""), "-D__prefix__=\\\"tbox\\\"")
+ t:are_equal(os.args({"aa\\bb/cc", "dd"}, {escape = true}), "aa\\\\bb/cc dd")
end