diff options
Diffstat (limited to 'lua/tests/027-create-multiple.lua')
-rwxr-xr-x | lua/tests/027-create-multiple.lua | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/lua/tests/027-create-multiple.lua b/lua/tests/027-create-multiple.lua index 30ce6155..bd6cae56 100755 --- a/lua/tests/027-create-multiple.lua +++ b/lua/tests/027-create-multiple.lua @@ -27,15 +27,6 @@ g1:set_path ("1") g2:set_path ("2") g3:set_path ("3") -if g1:get_path () ~= "1" then - error (string.format ("incorrect path in g1, expected '1', got '%s'", - g1:get_path ())) -end -if g2:get_path () ~= "2" then - error (string.format ("incorrect path in g2, expected '2', got '%s'", - g2:get_path ())) -end -if g3:get_path () ~= "3" then - error (string.format ("incorrect path in g3, expected '3', got '%s'", - g3:get_path ())) -end +assert (g1:get_path () == "1", "incorrect path in g1, expected '1'") +assert (g2:get_path () == "2", "incorrect path in g2, expected '2'") +assert (g3:get_path () == "3", "incorrect path in g3, expected '3'") |