diff options
| author | bors <bors@rust-lang.org> | 2019-07-13 16:27:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-07-13 16:27:14 +0000 |
| commit | 1c789dda08a57e1a3292d42e2d63f2c4d631057d (patch) | |
| tree | ee44610a46894c739af8ed6738d93dddaad5e8bd /exercises | |
| parent | b8368de6d58a2f83a388858ac30733862745349e (diff) | |
| parent | 4086d463a981e81d97781851d17db2ced290f446 (diff) | |
Auto merge of #192 - petemcfarlane:patch-2, r=komaeda
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}`
```
There may be other tests that need updating, but this is as far as I am through the Rustlings course right now :)
Diffstat (limited to 'exercises')
| -rw-r--r-- | exercises/test1.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/test1.rs b/exercises/test1.rs index f20cb38..d57d495 100644 --- a/exercises/test1.rs +++ b/exercises/test1.rs @@ -16,6 +16,6 @@ fn verify_test() { let price1 = calculate_price(55); let price2 = calculate_price(40); - assert_eq!(price1, 55); - assert_eq!(price2, 80); + assert_eq!(55, price1); + assert_eq!(80, price2); } |
