From ff3d85cabbc3df422ed68fd5b16217d4dcaba49d Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Wed, 8 Apr 2026 13:00:51 +0200 Subject: Add time module Co-Authored-By: Claude Sonnet 4.6 --- tests/test_time.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/test_time.c (limited to 'tests') diff --git a/tests/test_time.c b/tests/test_time.c new file mode 100644 index 0000000..3ab4d3e --- /dev/null +++ b/tests/test_time.c @@ -0,0 +1,13 @@ +#include "../include/testing.h" +#include "../include/time.h" +#include "../include/types.h" + +i32 test_time_diff() { + Time start = Time_get(); + Time end = Time_get(); + + Duration diff = Time_diff(end, start); + t_assert_equal(diff.s, 0); + + return 0; +} -- cgit v1.3