Skip to content

Commit

Permalink
Add test for single dash arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
guns committed Dec 11, 2013
1 parent 78b30f3 commit 0b21661
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/clojure/clojure/tools/cli_test.clj
Expand Up @@ -29,7 +29,9 @@
(is (= (tokenize-args #{} ["-a" "foo" "-b"])
[[[:short-opt "-a"] [:short-opt "-b"]] ["foo"]]))
(is (= (tokenize-args #{} ["-a" "foo" "-b"] :in-order true)
[[[:short-opt "-a"]] ["foo" "-b"]]))))
[[[:short-opt "-a"]] ["foo" "-b"]])))
(testing "does not interpret single dash as an option"
(is (= (tokenize-args #{} ["-"]) [[] ["-"]]))))

(deftest test-compile-option-specs
(testing "does not set values for :default unless specified"
Expand Down

0 comments on commit 0b21661

Please sign in to comment.