Skip to content
Browse files

Add test for single dash arguments

  • Loading branch information...
1 parent 78b30f3 commit 0b216614c66510ee796262d8a4552091b01a94fc @guns guns committed Dec 10, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/test/clojure/clojure/tools/cli_test.clj
View
4 src/test/clojure/clojure/tools/cli_test.clj
@@ -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"

0 comments on commit 0b21661

Please sign in to comment.
Something went wrong with that request. Please try again.