mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-19 20:35:04 +00:00
updated tests and added README, based on review feedback.
This commit is contained in:
1 parent
42d6bce336
commit
4f43ddb78f
6 files changed
+76
-31
No files matched your search
@@ -1,10 +1,7 @@
|
||||
(import ../gilded-rose/main)
|
||||
(import ../src/main :as shop)
|
||||
(use judge)
|
||||
|
||||
(do
|
||||
(def items
|
||||
[@{ :name "foo" :quality 3 :sell-in 5}
|
||||
@{ :name "bar" :quality 6 :sell-in 6}])
|
||||
(main/update-quality items)
|
||||
(def found (find |(= ($ :quality) 2) items))
|
||||
(test (found :name) "fixme"))
|
||||
(def items [(shop/item "foo" 0 0)])
|
||||
(shop/update-quality items)
|
||||
(test ((first items) :name) "fixme"))
|
||||
Reference in new issue
Block a user