assert.deepEqual(kivi.parse_date(".."), today());
assert.deepEqual(kivi.parse_date(""), null);
assert.deepEqual(kivi.parse_date("0"), new Date());
+ assert.deepEqual(kivi.parse_date("00"), new Date());
assert.deepEqual(kivi.parse_date("29.02.20008"), undefined);
});
assert.deepEqual(kivi.parse_date("1"), new Date((new Date).getFullYear(), (new Date).getMonth(), 1));
assert.deepEqual(kivi.parse_date("01"), new Date((new Date).getFullYear(), (new Date).getMonth(), 1));
+ assert.deepEqual(kivi.parse_date("0"), new Date());
+ assert.deepEqual(kivi.parse_date("00"), new Date());
+
assert.deepEqual(kivi.parse_date("-"), today());
assert.deepEqual(kivi.parse_date("--"), today());