GildedRose-Refactoring-Kata/elisp/gilded-rose-test.el
mgd e9cf5311fd 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
2024-10-18 15:32:03 +02:00

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)