Adding upstream version 1.9.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
2bf0435a35
commit
031879240c
356 changed files with 26924 additions and 0 deletions
22
tests/unittests/command_parse/test_script.py
Normal file
22
tests/unittests/command_parse/test_script.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
def test_eval(judge_command):
|
||||
judge_command(
|
||||
'eval "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second',
|
||||
{
|
||||
"command": "eval",
|
||||
"double_lua": "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}",
|
||||
"any": "2 key1 key2 first second",
|
||||
},
|
||||
)
|
||||
judge_command(
|
||||
"eval 'return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}' 2 key1 key2 first second",
|
||||
{
|
||||
"command": "eval",
|
||||
"single_lua": "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}",
|
||||
"any": "2 key1 key2 first second",
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
def test_scriptdebug(judge_command):
|
||||
judge_command("SCRIPT DEBUG YES", {"command": "SCRIPT DEBUG", "scriptdebug": "YES"})
|
||||
judge_command("SCRIPT DEBUG no", {"command": "SCRIPT DEBUG", "scriptdebug": "no"})
|
Loading…
Add table
Add a link
Reference in a new issue