Skip to content

Commit b74263c

Browse files
committed
Initial commit - set up project, README, .gitignore, etc.
0 parents  commit b74263c

File tree

7 files changed

+122
-0
lines changed

7 files changed

+122
-0
lines changed

.gitignore

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
pom.xml
2+
/lib/
3+
/classes/
4+
/targets/
5+
/target
6+
/classes
7+
/checkouts
8+
*.jar
9+
*.class
10+
*.dll
11+
*.pdb
12+
*.exe
13+
.lein-deps-sum
14+
.lein-failures
15+
.lein-plugins
16+
17+
#Visual Studio artifacts
18+
bin
19+
obj
20+
*.user
21+
*.suo
22+
*.nupkg

CONTRIBUTING.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
This is a [Clojure contrib] project.
2+
3+
__We cannot accept pull requests.__
4+
5+
* Issues can be filed in [JIRA]. No [Clojure CA] is required for this.
6+
* Patches/contributions can be attached to issues in [Jira]. You can [read more
7+
about that process](http://dev.clojure.org/display/community/Contributing).
8+
Contributions need a [signed CA (Contributor
9+
Agreement)](http://clojure.org/contributing).
10+
11+
Don't hesitate to ask if you have questions about this.
12+
13+
[JIRA]: http://dev.clojure.org/jira/browse/CLRTCHECK
14+
[Clojure CA]: http://dev.clojure.org/display/community/Contributing
15+
[Clojure contrib]: http://dev.clojure.org/display/doc/Clojure+Contrib

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# clr.test.check
2+
3+
A port of [clojure/test/check](https://github.com/clojure/test.check) library to ClojureCLR.
4+
5+
From the original's README:
6+
7+
> _test.check_ is a Clojure property-based testing tool inspired by QuickCheck. The core idea of _test.check_ is that instead of enumerating expected input and output for unit tests, you write properties about your function that should hold true for all inputs. This lets you write concise, powerful tests
8+
9+
## Releases
10+
11+
Nuget reference:
12+
13+
PM> Install-Package clojure.test.check
14+
15+
Leiningen/Clojars reference:
16+
17+
[org.clojure.clr/test.check "0.6.1"]
18+
19+
20+
## Notes on the ported code
21+
22+
None, so far.
23+
24+
## Contributing
25+
26+
We can not accept pull requests. Please see [CONTRIBUTING.md](CONTRIBUTING.md)
27+
for details.
28+
29+
30+
## License
31+
32+
Original:
33+
34+
> Copyright © 2014 Rich Hickey, Reid Draper and contributors
35+
36+
Distributed under the Eclipse Public License, the same as Clojure.

doc/intro.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Introduction to clr.test.check
2+
3+
TODO: write [great documentation](http://jacobian.org/writing/great-documentation/what-to-write/)

project.clj

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
(defproject org.clojure.clr/test.check "0.6.1-SNAPSHOT"
2+
:description "Port of github.com/clojure/test.check to ClojureCLR"
3+
:url "https://github.com/clojure/clr.test.check"
4+
:license {:name "Eclipse Public License"
5+
:url "http://www.eclipse.org/legal/epl-v10.html"}
6+
:dependencies []
7+
:warn-on-reflection true
8+
:min-lein-version "2.0.0"
9+
:plugins [[lein-clr "0.2.1"]]
10+
:deploy-repositories [["clojars" {:url "https://clojars.org/repo/"
11+
:sign-releases false}]]
12+
:clr {:cmd-templates {:clj-exe [#_"mono" [CLJCLR15_40 %1]]
13+
:clj-dep [#_"mono" ["target/clr/clj/Debug 4.0" %1]]
14+
:clj-url "https://github.com/downloads/clojure/clojure-clr/clojure-clr-1.4.0-Debug-4.0.zip"
15+
:clj-zip "clojure-clr-1.4.0-Debug-4.0.zip"
16+
:curl ["curl" "--insecure" "-f" "-L" "-o" %1 %2]
17+
:nuget-ver [#_"mono" [*PATH "nuget.exe"] "install" %1 "-Version" %2]
18+
:nuget-any [#_"mono" [*PATH "nuget.exe"] "install" %1]
19+
:unzip ["unzip" "-d" %1 %2]
20+
:wget ["wget" "--no-check-certificate" "--no-clobber" "-O" %1 %2]}
21+
;; for automatic download/unzip of ClojureCLR,
22+
;; 1. make sure you have curl or wget installed and on PATH,
23+
;; 2. uncomment deps in :deps-cmds, and
24+
;; 3. use :clj-dep instead of :clj-exe in :main-cmd and :compile-cmd
25+
:deps-cmds [; [:wget :clj-zip :clj-url] ; edit to use :curl instead of :wget
26+
; [:unzip "../clj" :clj-zip]
27+
]
28+
:main-cmd [:clj-exe "Clojure.Main.exe"]
29+
:compile-cmd [:clj-exe "Clojure.Compile.exe"]})

src/clr/test/check/core.clj

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
(ns clr.test.check.core)
2+
3+
(defn foo
4+
"I don't do a whole lot."
5+
[x]
6+
(println x "Hello, World!"))
7+
8+
(defn -main
9+
[& args]
10+
(apply println "Received args:" args))

test/clr/test/check/core_test.clj

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(ns clr.test.check.core-test
2+
(:use clojure.test
3+
clr.test.check.core))
4+
5+
(deftest a-test
6+
(testing "FIXME, I fail."
7+
(is (= 0 1))))

0 commit comments

Comments
 (0)