summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2011-01-14disable test failing only on Hudson (race condition?)Stuart Halloway
2011-01-14#710 diff mutable setsStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2011-01-05Handle edge case in arbitrary-precision substraction. refs #690Colin Jones
Signed-off-by: Stuart Halloway <stu@Orolo.local>
2011-01-05Build and deploy with Maven 2; CLJ-681Stuart Sierra
* Real pom.xml * Simpler build.xml for local development with Ant * No Clojure plugin; uses AntRun to build Clojure * POM inheritance from Sonatype OSS deployment * Build instructions in README * Automatically builds "slim" and "sources" JARs as before * 'distribution' profile generates a ZIP * version.properties generated by the version in pom.xml * slightly different format * minor changes to clojure.core to handle version.properties * Fix tests that assumed Ant as the test driver * Tweaked run_tests.clj to work against current master
2011-01-05Added sorted-by support for walk and testsTimothy Pratley
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-12-31I added a new macro, print-length-loop, that augments loop to only iterate ↵Tom Faulhaber
*print-length* times and then emit the "...". This makes it easy to write correct hand-coded dispatch functions. Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-12-19#684: fixed race condition in the test codeStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-12-17Fixed into-array behavior #678Alan Dipert
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-12-17coalesce test helpers into clojure.test-helper, so new contributors can find ↵Stuart Halloway
them easily. cleanup from #300 Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-12-17Update tests to recogize appropriate newlines for the platform that they're on.Tom Faulhaber
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-12-17disallow recur across try, refs #31Kevin Downey (hiredman)
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-30disable agent self-send testStuart Halloway
2010-11-29removed this reffogus
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-29Added tests and updated docs for init-proxy and update-proxy. Also updated ↵fogus
the docstrings. Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-29properly munge namespaces -> java package names for protocols and deftype ↵Chas Emerick
and friends; fixes CLJ-432 Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-29extra test for send from agent errorChouser
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-29test sending from an error handler #390Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-29Fixes that aliasing an unknown namespace gave an unhelpful error; will now ↵David Rupp
throw the same Exception thrown by (the-ns) when the namespace is not found Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-29#672: limit binding to just conveyor-fn, add regression test for "Pop ↵Stuart Halloway
without matching push" symptom Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-29Restore *agent* binding in agent action. CLJ-672Chouser
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-26Added unchecked casts; fixes bug #441. Code and original patches supplied by ↵Aaron Bedra
@stuarthalloway Signed-off-by: Rich Hickey <richhickey@gmail.com>
2010-11-05397 better error message when calling macros with arityMike Hinchey
Error message for macro arity was +2 for the internal params. Introduce specific class ArityException to correct it. Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-05add conversion from BigInt to BigIntegerAlexander Taggart
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-05CLJ-665 test improvements: don't touch a core var, and verify that value is ↵Stuart Halloway
put back correctly Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-11-05Add with-redefs macro and with-redefs-fn, CLJ-665Chouser
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-10-25#465 make with-local-vars dynamicCosmin Stejerean
2010-10-18Stable var caching. The values of non-dynamic ns-resolved (def'ed) vars ↵Rich Hickey
appearing by name in code are fixed at fn entry point, and will be cached for subsequent calls until the vars change (e.g. via a new def). Access to unbound vars will not always throw an exception, and may instead return Unbound objects. These Unbound objects throw exceptions when invoked. Note that modifications of var roots in a fn body will not be seen by the code compiled against those names in the same fn body. If you want to treat top-level vars as boxes, use #' This change allows the overhead of placing things in vars and small wrapper fns to be substantially eliminated.
2010-10-15require dynamically rebindable vars be explicitly declared dynamic, via ↵Rich Hickey
^:dynamic metadata support in def, or setDynamic builder method in Var. Also auto-enable :dynamic for *var*s as a bridge - prints warning, and will be removed before release.
2010-10-15#453 reflectionStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-10-15#364 test queue countStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-10-15test for #263Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-10-12:added metadata for diffStuart Halloway
2010-10-12#448 structural diffStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-10-12Fix clojure.set/subset? and superset? bugs with false/nil elementsJason Wolfe
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-10-12fixes and tests for #276 find-keywordStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-10-11Added tests for zero-arity comp implementation.fogus
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-10-11regression test for dynamic class reload #368Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-09-22Fixed a race in the pprint agent testTom Faulhaber
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-09-09improved reporting of compilation errors, added depth control to pst, got ↵Rich Hickey
rid of overlap in cause traces
2010-09-09improved repl error reporting, new repl utility: pst, prints stack traceRich Hickey
2010-08-22Merged branch 'master' into equivmergeRich Hickey
Conflicts were: src/clj/clojure/core.clj src/jvm/clojure/lang/Compiler.java src/jvm/clojure/lang/Util.java test/clojure/test_clojure/protocols.clj
2010-08-13organize common helpersStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-13more expressive tests for derive/underiveStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-13Fixing underive issues, adding testsRobert Lachlan
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-13Fix and tests for issue #404Rasmus Svensson
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-04fix record equality with other maps, = includes type, .equals doesn't. see #418Rich Hickey
2010-07-30#407 use munge as cheap validity test for Java method namesStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27♯413 parse-args defaults in-enc and out-enc to UTF-8, as required by shBen Smith-Mannschott
Previously parse-args was defaulting in-enc and out-enc to the platform default charset. This contradicted the intent of sh, which is to default to UTF-8 on all platforms. This appears not to have been noticed because the unit tests were still testing for the previous behavior of defaulting to platform encoding. (As it turns out the old behavior of using Charset/defaultCharset would have been wrong on Mac OS X since it claims "Mac Roman" here despite the fact that Mac OS X uses UTF-8 throughout, including in Terminal.app, shell and file system.) Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27fix degenerate defrecords, #402Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09test for #393Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>