mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-06-11 21:29:28 +00:00
set up midje (mainly for auto-testing, for the time being)
This commit is contained in:
parent
0b007c9b53
commit
d0a1933b7d
|
@ -5,4 +5,5 @@
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.5.1"]
|
:dependencies [[org.clojure/clojure "1.5.1"]
|
||||||
[org.clojure/core.match "0.2.0-rc5"]]
|
[org.clojure/core.match "0.2.0-rc5"]]
|
||||||
|
:profiles {:dev {:dependencies [[midje "1.5.1"]]}}
|
||||||
:main robotwar.core)
|
:main robotwar.core)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
(ns robotwar.assembler-test
|
(ns robotwar.assembler-test
|
||||||
(:use (clojure [string :only [join]]
|
(:use [clojure.string :only [join]]
|
||||||
[test])
|
[clojure.test]
|
||||||
|
[midje.sweet]
|
||||||
[robotwar.assembler]))
|
[robotwar.assembler]))
|
||||||
|
|
||||||
(def line1 "IF DAMAGE # D GOTO MOVE ; comment or something")
|
(def line1 "IF DAMAGE # D GOTO MOVE ; comment or something")
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
(ns robotwar.brain-test
|
(ns robotwar.brain-test
|
||||||
(:use [clojure.test]
|
(:use [clojure.test]
|
||||||
|
[midje.sweet]
|
||||||
[robotwar.brain])
|
[robotwar.brain])
|
||||||
(:require [robotwar.world :as world]
|
(:require [robotwar.world :as world]
|
||||||
[robotwar.register :as register]
|
[robotwar.register :as register]
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
(ns robotwar.core-test
|
(ns robotwar.core-test
|
||||||
(:require [clojure.test :refer :all]
|
(:use [clojure.test]
|
||||||
[robotwar.core :refer :all]))
|
[midje.sweet]
|
||||||
|
[robotwar.core]))
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
(ns robotwar.register-test
|
(ns robotwar.register-test
|
||||||
(:require [clojure.test :refer :all]
|
(:use [clojure.test]
|
||||||
[robotwar.register :refer :all]
|
[midje.sweet]
|
||||||
[robotwar.world :as world]))
|
[robotwar.register])
|
||||||
|
(:require [robotwar.world :as world]))
|
||||||
|
|
||||||
(def world (world/init-world 256 256 [""]))
|
(def world (world/init-world 256 256 [""]))
|
||||||
(def robot-path [:robots 0])
|
(def robot-path [:robots 0])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user