diff options
Diffstat (limited to 'valua-test.lua')
-rw-r--r-- | valua-test.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/valua-test.lua b/valua-test.lua index 1d53ecf..0291aaf 100644 --- a/valua-test.lua +++ b/valua-test.lua @@ -28,16 +28,19 @@ local test_values = { '29/02/2016', 'a@a.com', 'asd123', - 5.7 + 5.7, + {}, + {3,46} } local tests = { {v:new().type("string").len(3,5),{1,false}}, {v:new().type("number").len(3,5), {1,false}}, - {v:new().not_empty(),{2,true,3,false,4,false}}, + {v:new().type("table").empty(),{15,true,16,false,1,false}}, + {v:new().not_empty(),{2,true,3,false,4,false,16,true,5,true,6,true}}, {v:new().len(2,10),{2,true}}, {v:new().type("number"),{2,false}}, - {v:new().empty(),{3,true,4,true}}, + {v:new().empty(),{3,true,4,true,5,false,6,false}}, {v:new().boolean(),{1,false,5,true}}, {v:new().compare("hey"),{1,false,2,true}}, {v:new().number().min(45),{2,false,6,false,7,true}}, @@ -59,4 +62,4 @@ for n,t in ipairs(tests) do for i = 1, #t[2], 2 do check(t[1],test_values[t[2][i]],t[2][i+1],n) end -end +end
\ No newline at end of file |