summaryrefslogtreecommitdiff
path: root/tests/it.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/it.t')
-rwxr-xr-xtests/it.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/it.t b/tests/it.t
index d988215..721fbf7 100755
--- a/tests/it.t
+++ b/tests/it.t
@@ -236,11 +236,11 @@ is(it::date('datetime', time() . ''), it::date('datetime'), 'recognize digit str
is(it::date('datetime', '@' . time()), it::date('datetime'), 'recognize strtotime timestamp format');
is(it::date('datetime', 10), it::date('datetime', "10"), 'numeric and string give same result');
is(it::date('datetime', 10.0), it::date('datetime', "10"), '... as long as num is properly truncated');
-is(it::date('datetime', 10.5), it::date('datetime', "10.5"), '... with one digit after point');
-is(it::date('datetime', 10.56), it::date('datetime', "10.56"), '... with two digits after point');
+is(it::date('datetime', 10.5), it::date('datetime', "10"), '... with one digit after point');
+is(it::date('datetime', 10.56), it::date('datetime', "10"), '... with two digits after point');
is(it::date('datetime', 1000000), it::date('datetime', "1000000"), '... large nummer');
-is(it::date('datetime', 1000000.543), it::date('datetime', "1000000.543"), '... large nummer and point');
-is(it::date('time', 10.5), "10:05", 'interpret floating points with strtotime');
-is(it::date('time', 10.05), "10:05", 'interpret floating points with strtotime');
+is(it::date('datetime', 1000000.543), it::date('datetime', "1000000"), '... large nummer and point');
+is(it::date('time', "10.5"), "10:05", 'interpret string with points with strtotime');
+is(it::date('time', "10.05"), "10:05", 'interpret string with points with strtotime');
?>