Doing the Erlang way, extracted item into separate file as include.

This commit is contained in:
Manfred Bergmann committed 2022-01-23 18:59:55 +01:00
1 parent 88211625bb
commit c092826624
3 files changed
+9 -14

No files matched your search

+4 -4
View File
@@ -2,12 +2,12 @@
(behaviour ltest-unit)
(export all)
(import (from gilded-rose
(update-quality 1)
(make-item 3)
(item-name 1))))
(update-quality 1))))
(include-lib "ltest/include/ltest-macros.lfe")
(include-lib "include/gilded-rose-item.lfe")
(deftest update-quality-test
(is-equal "foo" (item-name (car (update-quality
(list (make-item "foo" 0 0)))))))
(list (make-item name "foo" sellin 0 quality 0)))))))