Skip to content

Commit

Permalink
fix: Update total_yen_test case in sticker-shop exercise
Browse files Browse the repository at this point in the history
This commit is updating the total_yen_test case to use Yen currency.

For now the test case is using Euro currency while we should check
if the `sticker_shop.total` function is working as expected with
Yen currency.

[no important files changed]
  • Loading branch information
airclovis authored and lpil committed May 10, 2024
1 parent 470f76d commit 4a2f00b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions exercises/concept/sticker-shop/test/sticker_shop_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ pub fn total_euros_test() {

pub fn total_yen_test() {
[
sticker_shop.euro(480),
sticker_shop.euro(340),
sticker_shop.euro(455),
sticker_shop.euro(165),
sticker_shop.euro(100),
sticker_shop.yen(480),
sticker_shop.yen(340),
sticker_shop.yen(455),
sticker_shop.yen(165),
sticker_shop.yen(100),
]
|> sticker_shop.total
|> should.equal(sticker_shop.euro(1540))
|> should.equal(sticker_shop.yen(1540))
}

0 comments on commit 4a2f00b

Please sign in to comment.