mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-20 12:55:06 +00:00
Further Amendments
- removed the cond statement and replaced with nested ifs - removed the let statement. Data is now accesses directly - update-quality now takes a list of items
This commit is contained in:
1 parent
91ebc85a70
commit
e9cf5311fd
2 files changed
+24
-20
No files matched your search
@@ -1,10 +1,10 @@
|
||||
(require 'ert)
|
||||
(require 'gilded-rose)
|
||||
|
||||
|
||||
(defconst foo (make-item "foo" 20 10))
|
||||
(setq item-list
|
||||
(list (make-item "foo" 5 5)))
|
||||
|
||||
(ert-deftest check-name-of-item ()
|
||||
(should (string= "fixme" (plist-get foo :name))))
|
||||
(should (string= "fixme" (plist-get (car item-list) :name))))
|
||||
|
||||
(ert-run-tests-interactively t)
|
||||
Reference in new issue
Block a user