mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
9 lines
230 B
Plaintext
9 lines
230 B
Plaintext
import gilded_rose.{Item, update_quality}
|
|
import gleeunit/should
|
|
|
|
pub fn update_quality_test() {
|
|
let inventory = [Item("foo", 0, 0)]
|
|
let assert [new_item] = update_quality(inventory)
|
|
new_item.name |> should.equal("fixme")
|
|
}
|