mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-18 20:05:04 +00:00
* Amendments
- Initial test modified to be similar to Clojure version - update-quality modified to read from make-item directly. Helper methods removed
This commit is contained in:
1 parent
3615cfb8ab
commit
91ebc85a70
3 files changed
+15
-26
No files matched your search
@@ -1,9 +1,10 @@
|
||||
(require 'ert)
|
||||
(require 'gilded-rose)
|
||||
|
||||
|
||||
(defconst foo (make-item "foo" 20 10))
|
||||
|
||||
(ert-deftest check-name-of-item ()
|
||||
"Test that item is called sweets. This test should fail!"
|
||||
(let ((sweets (make-item "sweets" 5 5)))
|
||||
(should (string= (item-name sweets) "You should change this"))))
|
||||
(should (string= "fixme" (plist-get foo :name))))
|
||||
|
||||
(ert-run-tests-interactively t)
|
||||
Reference in new issue
Block a user