From 0fb5f8adc05557df4991abbe5268cf63414753c2 Mon Sep 17 00:00:00 2001 From: Andinus Date: Mon, 16 Aug 2021 21:40:08 +0530 Subject: Add tests for timestamp-to-date subroutine --- t/02-timestamp-to-date.rakutest | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 t/02-timestamp-to-date.rakutest (limited to 't') 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"; -- cgit 1.4.1-2-gfad0