Skip to content

Commit

Permalink
cover by basic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
source-c committed Nov 2, 2022
1 parent fd09468 commit c9c7f45
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions test/base.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@

(deftest basic
(testing "embedded sample (simple test)"

(log/infof "parsed without arrays: opts=%s" nil)

(let [config (load-config "test")]
(log/info nil config)

(log/info "\n" (pretty config) "\n")

(is (-> config :backend :0 :enabled))
(is (= (-> config :scheduler :threadPool.threadCount) 12)))

(log/infof "parsed without arrays: opts=%s" {:with-arrays true})

(let [config (load-config "test" {:with-arrays true})]
(log/info {:with-arrays true} config)

(log/info "\n" (pretty config) "\n")

(is (-> config :backend first :enabled))
(is (= (-> config :scheduler :threadPool.threadCount) 12)))))
(is (= (-> config :scheduler :threadPool.threadCount) 12))
(is (and (-> config :service first (= "foo"))
(-> config :service second :bar (= "bar"))
(-> config :service last last)))
(is (and (-> config :tomato first (= "vvv"))
(-> config :tomato second (= "zzz")))))))

0 comments on commit c9c7f45

Please sign in to comment.