bettys-bike-shop

This commit is contained in:
Alexander Heldt
2025-10-30 20:08:25 +01:00
parent 3c64c873ef
commit 17e35b1c6a
10 changed files with 332 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import bettys_bike_shop
import exercism/should
import exercism/test_runner
pub fn main() {
test_runner.main()
}
pub fn pence_to_pounds_599_is_5_99_pounds_test() {
bettys_bike_shop.pence_to_pounds(599)
|> should.equal(5.99)
}
pub fn pence_to_pounds_33_is_0_33_pounds_test() {
bettys_bike_shop.pence_to_pounds(33)
|> should.equal(0.33)
}
pub fn pounds_to_string_5_99_test() {
bettys_bike_shop.pounds_to_string(5.99)
|> should.equal("£5.99")
}
pub fn pounds_to_string_0_33_test() {
bettys_bike_shop.pounds_to_string(0.33)
|> should.equal("£0.33")
}