Skip to content

Commit

Permalink
fix(quiz1): Fix inconsistent wording (#826)
Browse files Browse the repository at this point in the history
The second test expects the function to return 80 when there is an order of 40 apples, but the current wording implies returning 40 will pass as well
  • Loading branch information
dxbednarczyk committed Aug 24, 2021
1 parent df25684 commit 03131a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/quiz1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// - Functions

// Mary is buying apples. One apple usually costs 2 Rustbucks, but if you buy
// more than 40 at once, each apple only costs 1! Write a function that calculates
// 40 or more at once, each apple only costs 1! Write a function that calculates
// the price of an order of apples given the quantity bought. No hints this time!

// I AM NOT DONE
Expand Down

1 comment on commit 03131a3

@Mark-S-Hill
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was just going through this exercise. I believe the assertion on line 23 should now be: assert_eq!(40, price2); as 40 apples should now cost 1 rather than 2 each as per the updated wording.

Please sign in to comment.