From 0c771b8e521c4475f6764f31a322b7813c2062c7 Mon Sep 17 00:00:00 2001 From: andre alves garzia Date: Sat, 11 Feb 2017 15:28:32 -0200 Subject: added tests for datetime --- valua-test.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/valua-test.lua b/valua-test.lua index 4554382..26d9444 100644 --- a/valua-test.lua +++ b/valua-test.lua @@ -1,4 +1,4 @@ -local v = require "valua" +local v = require "valuaa" local passing = true local function check(val_test, test_value, expected, n) @@ -34,7 +34,8 @@ local test_values = { {}, {3,46}, "", - "test-123_maria.2@newdomain.wow.movie" + "test-123_maria.2@newdomain.wow.movie", + "10/06/1980 10:32:10" } local tests = { @@ -59,7 +60,8 @@ local tests = { {v:new().string(),{14,false,1,true}}, {v:new().string().alnum(),{6,false}}, {v:new().contains(" "),{2,false,1,true}}, - {v:new().no_white(),{1,false,2,true}} + {v:new().no_white(),{1,false,2,true}}, + {v:new().datetime(),{19,true,9,false}} } for n,t in ipairs(tests) do -- cgit v1.2.3-70-g09d2