Skip to content

Commit

Permalink
Add generic-doublificate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilmari Vacklin committed May 24, 2012
1 parent 4f3021c commit 1457b68
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/i_am_a_horse_in_the_land_of_booleans.clj
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
(defn not-teen? [age]
":(")

(defn generic-doublificate [x]
":(")

; '_______'
8 changes: 8 additions & 0 deletions test/i_am_a_horse_in_the_land_of_booleans_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@
(not-teen? 12) => true
(not-teen? 19) => false
(not-teen? 20) => true)

(facts "generic-doublificate"
(generic-doublificate 1) => 2
(generic-doublificate [1 2]) => [2 4]
(generic-doublificate '(65 21)) => [130 42]
(generic-doublificate {}) => nil
(generic-doublificate []) => nil
(generic-doublificate {:a 1}) => true)

0 comments on commit 1457b68

Please sign in to comment.