diff --git a/tests/luatest.lua b/tests/luatest.lua index 889c51a..c3da958 100644 --- a/tests/luatest.lua +++ b/tests/luatest.lua @@ -48,12 +48,9 @@ function luatest.prof_init(version, status) prof_register_command("/lua", 0, 1, "/lua", "luatest", "luatest", cmd_lua) prof_register_command("/bracket", 0, 1, "/bracket", "Parenthesise input string", "Parenthesise input string", cmd_bracket); - arg_ac = { "football", "footy", "tennis" } - prof_register_ac("/lcomplete", arg_ac) - arg_one_ac = { "goal", "out", "try", "given" } - prof_register_ac("/lcomplete football", arg_one_ac) - arg_two_ac = { "test", "prod", "dev", "stage" } - prof_register_ac("/lcomplete tennis", arg_two_ac) + prof_register_ac("/lcomplete", { "football", "footy", "tennis" }) + prof_register_ac("/lcomplete football", { "goal", "out", "try", "given" }) + prof_register_ac("/lcomplete tennis", { "test", "prod", "dev", "stage" }) prof_register_command("/lcomplete", 0, 2, "/lcomplete", "Lua completion", "Lua completion", cmd_bracket) prof_register_timed(timer_test, 10) diff --git a/tests/python-test.py b/tests/python-test.py index 8886863..3a3120a 100644 --- a/tests/python-test.py +++ b/tests/python-test.py @@ -43,12 +43,9 @@ def prof_init(version, status): prof.register_command("/upper", 0, 1, "/upper", "Uppercase input string", "Uppercase input string", _cmd_upper) - arg_ac = [ "aah", "baa", "bee" ] - prof.register_ac("/pcomplete", arg_ac); - arg_one_ac = [ "one", "two", "three", "nan" ] - prof.register_ac("/pcomplete aah", arg_one_ac); - arg_two_ac = [ "james", "jim", "jane", "bob" ] - prof.register_ac("/pcomplete baa", arg_two_ac); + prof.register_ac("/pcomplete", [ "aah", "baa", "bee" ]); + prof.register_ac("/pcomplete aah", [ "one", "two", "three", "nan" ]); + prof.register_ac("/pcomplete baa", [ "james", "jim", "jane", "bob" ]); prof.register_command("/pcomplete", 0, 2, "/pcomplete", "Python completion", "Python completion", _cmd_upper) prof.register_timed(_timer_test, 10)