Skip to content

Commit

Permalink
failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Jan 3, 2024
1 parent 64a8c3b commit 0e5efc9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/babashka/cli_test.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,17 @@
(is (= "my-file.edn" (-> (cli/dispatch
table
["foo" ":deps-file" "my-file.edn"])
:opts :deps-file))))))
:opts :deps-file)))))

(testing "choose most specific"
(d/deflet
(def table [{:cmds ["foo" "bar"] :fn identity}
{:cmds ["foo" "baz"] :fn identity}
{:cmds ["foo"] :fn identity}])
(is (= ["foo" "bar"] (-> (cli/dispatch
table
["foo" "bar" "baz" "--dude" "1"])
:dispatch))))))

(deftest table->tree-test
(testing "internal represenation"
Expand Down

0 comments on commit 0e5efc9

Please sign in to comment.