Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added support for shorter partial syntax

  • Loading branch information...
commit 9b45b1af1763b9b4fd00aa25e8bc2950ace89d0a 1 parent c5acd56
Jay Fields authored
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
8 project.clj
@@ -1,3 +1,5 @@
-(defproject jry "1.0.0-SNAPSHOT"
- :description "FIXME: write description"
- :dependencies [[org.clojure/clojure "1.3.0"]])
+ :description "general clojure functions"
+ :dependencies [[org.clojure/clojure "1.3.0"]]
+ :dev-dependencies [[expectations "1.3.5"]
+ [lein-expectations "0.0.1"]])
View
2  src/jry/core.clj
@@ -1 +1,3 @@
(ns jry.core)
+
+(defn % [& args] (apply partial args))
View
7 test/jry/test/core.clj
@@ -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)))
Please sign in to comment.
Something went wrong with that request. Please try again.