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:
mgd authored and Peter Kofler committed 2024-10-18 15:32:03 +02:00
1 parent 91ebc85a70
commit e9cf5311fd
2 files changed
+24 -20

No files matched your search

+3 -3
View File
@@ -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)