Need to unpack args

This commit is contained in:
FourteenBrush
2024-01-25 11:44:53 +01:00
parent 3a5d80b291
commit 895ebb95d5

View File

@@ -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, loc=loc)
errorf(t, format, ..args, loc=loc)
}
return ok
}