Skip to content
This repository
Browse code

target latest riddley for tests

  • Loading branch information...
commit 15ccf038a6afae06391d34e5279f2fcfa177ce1b 1 parent 360cf8c
Zach Tellman authored September 18, 2013
2  .travis.yml
... ...
@@ -1,6 +1,6 @@
1 1
 language: clojure
2 2
 lein: lein2
3  
-script: lein2 do clean, sleight test :make-odd, test :normal
  3
+script: lein2 sleight test :make-odd; lein2 test
4 4
 jdk:
5 5
   - openjdk7
6 6
   - oraclejdk7
2  lein-sleight/project.clj
@@ -2,4 +2,4 @@
2 2
   :description "A plugin for whole-program transformations via sleight"
3 3
   :license {:name "MIT License"}
4 4
   :eval-in-leiningen true
5  
-  :dependencies [[leinjacker "0.3.3"]]) 
  5
+  :dependencies [[leinjacker "0.4.1"]]) 
10  lein-sleight/src/leiningen/sleight.clj
@@ -14,10 +14,12 @@
14 14
   (utils/merge-projects project {:dependencies [['sleight "0.2.0-SNAPSHOT"]]}))
15 15
 
16 16
 (defn switch-form [transforms namespaces]
17  
-  `(sleight.core/wrap-reader
18  
-     (sleight.core/merge-transforms
19  
-       ~transforms
20  
-       ~namespaces)))
  17
+  `(do
  18
+     (sleight.core/unwrap-reader)
  19
+     (sleight.core/wrap-reader
  20
+       (sleight.core/merge-transforms
  21
+         ~transforms
  22
+         ~namespaces))))
21 23
 
22 24
 (defn load-form [transforms]
23 25
   `(do
7  project.clj
@@ -2,8 +2,9 @@
2 2
   :description "whole-program transformations for clojure"
3 3
   :dependencies []
4 4
   :profiles {:dev {:dependencies [[org.clojure/clojure "1.5.1"]
5  
-                                  [riddley "0.1.4"]]}}
  5
+                                  [riddley "0.1.5-SNAPSHOT"]]}}
6 6
   :plugins [[lein-sleight "0.2.0-SNAPSHOT"]]
7  
-  :sleight {:default {:transforms [sleight.transform-test/make-odd]}}
  7
+  :sleight {:default {:transforms [sleight.transform-test/make-odd]}
  8
+            :identity {:transforms []}}
8 9
   :test-selectors {:make-odd :make-odd
9  
-                   :normal (complement :make-odd)})
  10
+                   :default (complement :make-odd)})
10  test/sleight/core_test.clj
@@ -2,23 +2,17 @@
2 2
   (:require
3 3
     [clojure.test :refer :all]))
4 4
 
5  
-(defn run-make-odd-test []
  5
+(deftest ^:make-odd test-make-odd
6 6
   (is (= 2 3))
7 7
   (is (not= 1 2))
8 8
   (is (= 2 2))
9 9
   (is (= 3 3)))
10 10
 
11  
-(deftest ^:make-odd test-make-odd
12  
-  (run-make-odd-test))
13  
-
14  
-(defn run-normal-test []
  11
+(deftest test-normal
15 12
   (is (not= 2 3))
16 13
   (is (not= 1 2))
17 14
   (is (= 2 2))
18 15
   (is (= 3 3)))
19 16
 
20  
-(deftest test-normal
21  
-  (run-normal-test))
22  
-
23 17
 
24 18
 

0 notes on commit 15ccf03

Please sign in to comment.
Something went wrong with that request. Please try again.