diff options
Diffstat (limited to 't/02-timestamp-to-date.rakutest')
-rw-r--r-- | t/02-timestamp-to-date.rakutest | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/02-timestamp-to-date.rakutest b/t/02-timestamp-to-date.rakutest new file mode 100644 index 0000000..4e94dd1 --- /dev/null +++ b/t/02-timestamp-to-date.rakutest @@ -0,0 +1,7 @@ +use Test; +use Taurus::Timestamp; + +plan 2; + +is-deeply timestamp-to-date("16/08/2021"), Date.new("2021-08-16"), "Date"; +is-deeply timestamp-to-date("16/08/2020 00:00 am"), Date.new("2020-08-16"), "Date with timestamp"; |