mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-09-20 14:45:36 +00:00
Merge pull request 'testing exercise, fix order of parameters to expectEqual
' (#281) from cstyan/exercises:test-expect into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/281
This commit is contained in:
commit
7488727625
|
@ -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