mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-08-03 15:15:37 +00:00
for expectEqual the first param is expected
Signed-off-by: Callum Styan <callumstyan@gmail.com>
This commit is contained in:
parent
34a7c6c861
commit
f5d2c5124c
|
@ -58,7 +58,7 @@ test "add" {
|
||||||
|
|
||||||
// Another way to perform this test
|
// Another way to perform this test
|
||||||
// is as follows:
|
// is as follows:
|
||||||
try testing.expectEqual(add(41, 1), 42);
|
try testing.expectEqual(42, add(41, 1));
|
||||||
|
|
||||||
// This time a test with the addition
|
// This time a test with the addition
|
||||||
// of a negative number:
|
// of a negative number:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user