diff options
| author | FourteenBrush <naessensarthur2@protonmail.com> | 2024-01-25 10:20:23 +0100 |
|---|---|---|
| committer | FourteenBrush <naessensarthur2@protonmail.com> | 2024-01-25 10:20:23 +0100 |
| commit | 3a5d80b291139bc3789eda28081efdd95743838b (patch) | |
| tree | 259207289187d60978762220745c11c10af5b350 /core/testing/testing.odin | |
| parent | 967ccfc7ccc0f76c653ff4bb625bac60e89a7904 (diff) | |
Forgot to include loc param
Diffstat (limited to 'core/testing/testing.odin')
| -rw-r--r-- | core/testing/testing.odin | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/testing/testing.odin b/core/testing/testing.odin index e6518b249..cd6051de3 100644 --- a/core/testing/testing.odin +++ b/core/testing/testing.odin @@ -94,7 +94,7 @@ expect :: proc(t: ^T, ok: bool, msg: string = "", loc := #caller_location) -> bo expectf :: proc(t: ^T, ok: bool, format: string, args: ..any, loc := #caller_location) -> bool { if !ok { - errorf(t, format, args) + errorf(t, format, args, loc=loc) } return ok } @@ -108,7 +108,6 @@ expect_value :: proc(t: ^T, value, expected: $T, loc := #caller_location) -> boo } - set_fail_timeout :: proc(t: ^T, duration: time.Duration, loc := #caller_location) { _fail_timeout(t, duration, loc) } |