diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-03-20 17:56:22 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-03-20 17:56:22 +0100 |
| commit | 9c144dd24f4d6eb148f8ba1049d9a365a233c504 (patch) | |
| tree | f982cd9760ae7ee7638836468aa5b5225b807e33 /tests | |
| parent | 07ef96954647dd80fb3e6a8df14b3280a2d99fa4 (diff) | |
Change Ordinal from int to i64
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/time/test_core_time.odin | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/core/time/test_core_time.odin b/tests/core/time/test_core_time.odin index 2d13ee326..0e324ffaf 100644 --- a/tests/core/time/test_core_time.odin +++ b/tests/core/time/test_core_time.odin @@ -155,7 +155,8 @@ test_component_to_time_roundtrip :: proc(t: ^testing.T) { days += 1 } for day in 1..=days { - date_component_roundtrip_test(t, {{year, month, day}, {0, 0, 0, 0}}) + d, _ := dt.components_to_datetime(year, month, day, 0, 0, 0, 0) + date_component_roundtrip_test(t, d) } } } @@ -171,7 +172,7 @@ date_component_roundtrip_test :: proc(t: ^testing.T, moment: dt.DateTime) { expected := fmt.tprintf("Expected %4d-%2d-%2d %2d:%2d:%2d, got %4d-%2d-%2d %2d:%2d:%2d", moment.year, moment.month, moment.day, moment.hour, moment.minute, moment.second, YYYY, MM, DD, hh, mm, ss) - ok = moment.year == YYYY && moment.month == int(MM) && moment.day == DD - ok &= moment.hour == hh && moment.minute == mm && moment.second == ss + ok = moment.year == i64(YYYY) && moment.month == i64(MM) && moment.day == i64(DD) + ok &= moment.hour == i64(hh) && moment.minute == i64(mm) && moment.second == i64(ss) expect(t, ok, expected) }
\ No newline at end of file |