-
-
Save bttf/4db2ea0d2bf7d3a31dbc to your computer and use it in GitHub Desktop.
vim-fireplace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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