1 (ns adventofcode2019.day14-test
2 (:require [clojure.test :refer :all]
3 [adventofcode2019.day14 :refer :all]))
5 (deftest check-make-graph
6 (is (= (make-graph ["3 ORE => 2 ABC"
9 "FUEL" {{"ABC" 3} 1}})))
11 (deftest simple-exchange
12 (is (= 3 (find-lowest-exchange-rate {"FUEL" {{"ORE" 1, "ABC" 2, "DEF" 3} 1
18 (is (= 6 (find-lowest-exchange-rate (make-graph ["3 ORE => 2 ABC"
22 (deftest complicated-exchange
23 (is (= 2 (find-lowest-exchange-rate (make-graph ["3 ORE => 2 ABC"
29 (deftest very-tricky-exchange
30 (is (= 3 (find-lowest-exchange-rate (make-graph ["3 ORE => 2 ABC"