for expectEqual the first param is expected

Signed-off-by: Callum Styan <callumstyan@gmail.com>
This commit is contained in:
Callum Styan 2025-07-13 17:02:50 -07:00
parent 34a7c6c861
commit f5d2c5124c

View File

@ -58,7 +58,7 @@ test "add" {
// Another way to perform this test
// is as follows:
try testing.expectEqual(add(41, 1), 42);
try testing.expectEqual(42, add(41, 1));
// This time a test with the addition
// of a negative number: