Permalink
Browse files

added support for shorter partial syntax

  • Loading branch information...
1 parent c5acd56 commit 9b45b1af1763b9b4fd00aa25e8bc2950ace89d0a Jay Fields committed Feb 25, 2012
Showing with 10 additions and 7 deletions.
  1. +5 −3 project.clj
  2. +2 −0 src/jry/core.clj
  3. +3 −4 test/jry/test/core.clj
View
@@ -1,3 +1,5 @@
-(defproject jry "1.0.0-SNAPSHOT"
- :description "FIXME: write description"
- :dependencies [[org.clojure/clojure "1.3.0"]])
+(defproject jry "1.0.0"
+ :description "general clojure functions"
+ :dependencies [[org.clojure/clojure "1.3.0"]]
+ :dev-dependencies [[expectations "1.3.5"]
+ [lein-expectations "0.0.1"]])
View
@@ -1 +1,3 @@
(ns jry.core)
+
+(defn % [& args] (apply partial args))
View
@@ -1,6 +1,5 @@
(ns jry.test.core
- (:use [jry.core])
- (:use [clojure.test]))
+ (:use jry.core expectations))
-(deftest replace-me ;; FIXME: write
- (is false "No tests have been written."))
+(expect fn? (% identity 1))
+(expect 1 ((% identity 1)))

0 comments on commit 9b45b1a

Please sign in to comment.