mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-11 09:29:59 +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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user