mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
for expectEqual the first param is expected
Signed-off-by: Callum Styan <callumstyan@gmail.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user