From a9d209847d5b95df14c0d5a42dcd0623743f1092 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sat, 7 Oct 2023 22:27:38 +0200 Subject: [PATCH] debugging CI --- tests/067-time.buzz | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/067-time.buzz b/tests/067-time.buzz index 1f104ba4..a010e9b8 100644 --- a/tests/067-time.buzz +++ b/tests/067-time.buzz @@ -1,5 +1,6 @@ import "std"; import "time"; +import "debug"; test "Time std lib" { const now = DateTime.now(); @@ -20,6 +21,7 @@ test "Time std lib" { const format = "The time is %Y-%m-%d %H:%M:%S"; const formatted = time.format(format); + print(formatted); assert( formatted == "The time is 2023-10-05 09:38:55", message: "Could format time" @@ -27,6 +29,7 @@ test "Time std lib" { | assert(time.timestamp() == 1696491535, message: "Could use timestamp"); + print("{now.timestamp()} > {time.timestamp() ? {now.timestamp() > time.timestamp()}}"); assert(now.timestamp() > time.timestamp()); | FIXME: weird error with localtime that will return null if fed a number and not the result of time @@ -35,6 +38,7 @@ test "Time std lib" { | dump(recreated); const recreated = DateTime.parse(formatted, format: format); + dump(recreated); assert( recreated.monthDay == time.monthDay