mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
- 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
11 lines
224 B
EmacsLisp
11 lines
224 B
EmacsLisp
(require 'ert)
|
|
(require 'gilded-rose)
|
|
|
|
(setq item-list
|
|
(list (make-item "foo" 5 5)))
|
|
|
|
(ert-deftest check-name-of-item ()
|
|
(should (string= "fixme" (plist-get (car item-list) :name))))
|
|
|
|
(ert-run-tests-interactively t)
|