From 4086d463a981e81d97781851d17db2ced290f446 Mon Sep 17 00:00:00 2001 From: Pete McFarlane Date: Sat, 13 Jul 2019 13:31:57 +0100 Subject: [PATCH] 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}` ``` --- exercises/test1.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/test1.rs b/exercises/test1.rs index f20cb38313..d57d495997 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); }