diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-04-08 13:00:51 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-04-08 13:00:51 +0200 |
| commit | ff3d85cabbc3df422ed68fd5b16217d4dcaba49d (patch) | |
| tree | 12d792c07ad9d779f1b4ecf4ac785ad1a1082973 /tests/test_time.c | |
| parent | 5babc34721e5f587ecae5bd4432fd57bf8c401fe (diff) | |
Add time module
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_time.c')
| -rw-r--r-- | tests/test_time.c | 13 |
1 files changed, 13 insertions, 0 deletions
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; +} |
