Browse Source

Need to unpack args

FourteenBrush 1 year ago
parent
commit
895ebb95d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/testing/testing.odin

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