You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
675 B
21 lines
675 B
3 years ago
|
(ns lucians-luscious-lasagna-test
|
||
|
(:require [clojure.test :refer [deftest testing is]]
|
||
|
lucians-luscious-lasagna))
|
||
|
|
||
|
(deftest expected-time-test
|
||
|
(is (= 40 lucians-luscious-lasagna/expected-time)))
|
||
|
|
||
|
(deftest remaining-time-test
|
||
|
(is (= 15 (lucians-luscious-lasagna/remaining-time 25))))
|
||
|
|
||
|
(deftest prep-time-one-layer-test
|
||
|
(is (= 2 (lucians-luscious-lasagna/prep-time 1))))
|
||
|
|
||
|
(deftest prep-time-multiple-layers-test
|
||
|
(is (= 8 (lucians-luscious-lasagna/prep-time 4))))
|
||
|
|
||
|
(deftest total-time-one-layer-test
|
||
|
(is (= 32 (lucians-luscious-lasagna/total-time 1 30))))
|
||
|
|
||
|
(deftest total-time-multiple-layers-test
|
||
|
(is (= 16 (lucians-luscious-lasagna/total-time 4 8))))
|