Skip to content

Instantly share code, notes, and snippets.

@bttf
Created April 11, 2013 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bttf/4db2ea0d2bf7d3a31dbc to your computer and use it in GitHub Desktop.
Save bttf/4db2ea0d2bf7d3a31dbc to your computer and use it in GitHub Desktop.
vim-fireplace
1 (ns command-line-args.core-test
2 (:use clojure.test
3 command-line-args.core))
4
5 (deftest pairs-of-values
6 (let [args ["--server" "localhost"
7 "--port" "8080"
8 "--environment" "production"]]
9 (is (= {:server "localhost"
10 :port "8080"
11 :environment "production"}
12 (parse-args args)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment