Skip to content

Commit 4086d46

Browse files
fix(test1): Swap assertion parameter order
`Expected` should come before `actual`, other wise it leads to confusing compiler messages, e.g. ``` note: expected type `()` found type `{integer}` ```
1 parent b8368de commit 4086d46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/test1.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ fn verify_test() {
1616
let price1 = calculate_price(55);
1717
let price2 = calculate_price(40);
1818

19-
assert_eq!(price1, 55);
20-
assert_eq!(price2, 80);
19+
assert_eq!(55, price1);
20+
assert_eq!(80, price2);
2121
}

0 commit comments

Comments
 (0)