summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2010-06-25incorporate BigIntequivRich Hickey
2010-06-23box longs-and-smaller as longsRich Hickey
2010-06-17tighten up numeric comparisonsRich Hickey
2010-06-15Unify numeric semantics around longs, with throw on overflow. Allow numeric ↵Rich Hickey
literals to be primitive initializers. Canonicalize boxing of integers, if it fits in int, is Integer, else Long, thus primitive coercions can't be used to get particular boxed types, use Long/valueOf etc. Ask for BigIntegers if you want arbitrary precision, new literal number format - append 'N' for BigInteger. BigIntegers do not reduce automatically, are contagious. New particular names for unchecked ops - unchecked-xxx-int or unchecked-xxx-long. You should need far fewer hints for primitive perf, and avoid int casts and any casting of numeric literals, see: http://gist.github.com/440102
2010-06-09detect constant maps, emit as constantsRich Hickey
break down constant inits into separate methods, call from init move core.clj to statics
2010-06-08direct calls to statics, integrating into core fnsRich Hickey
2010-06-08first cut at primitives in fn sigsRich Hickey
2010-06-08read ^:foo bar as ^{:foo true} bar and merge existing metatada. See #375.Christophe Grand
Signed-off-by: Rich Hickey <richhickey@gmail.com>
2010-06-07Added testcase for defrecord with field names that used to clash with method ↵Konrad Hinsen
argument names Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07tidy up and test #257, remove spurious .rej fileStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07added fnil to supply default values #257Timothy Pratley
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07get-in support for default #256Timothy Pratley
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07fix pop! when the tree depth decreasesChristophe Grand
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03test for #361: merge-with for defrecordStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03#359 request from Stuart Sierra: split-lines, blank?, escapeStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03minor fixes to #359:Stuart Halloway
- add clojure.string to build, - make replace,replace-first use CharSequence in same way Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03#359 driven to abstraction: CharSequence, not stringStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03string fns take an object, you can't pass nil #359Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03abstraction fix to split: preserve vector nature of host return value #359Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03metadata review #359Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03string perf tweaks, tests #359David Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03arg order fix, rename chomp-> trim-nl, drop chop, perfDavid Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03collapse the replace-first-* fns, align arg order with clojure conventionDavid Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03collapse the "all" replace-* fns, align arg order with clojure conventionDavid Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03trim variants differ by suffix, for sortabilityDavid Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03make join faster #359David Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03WIP: literal promotion of contrib code #359David Liebke and Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03Make disj nil-awareMeikel Brandmeyer
Refers #360 Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03Fix reductions on empty input sequenceMeikel Brandmeyer
Refers #362 Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03test for #327Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-28place to hang defn error messagesStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-28#330 def/declare do not reset metadata unless init-expr is passedStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-28name handles stringsStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-28tweaking what gets exposed (javadoc #357)Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-28related tests from contribStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-27test for #358Stuart Halloway
Signed-off-by: STUART HALLOWAY <stuart@STUART-HALLOWAYs-MacBook-Pro.local>
2010-05-24better error message on failed referStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-24propagate useful metadata to protocol fns #349Stuart Halloway
- also add :added metadata for fns with newly visible docstrings Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-24fix NPE if redefined protocol removes method #333 (Mike Hinchey)Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-22last var wins only for clojure.core, #332Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-20added failed-agent test for pprintStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-20Various pprint updates: Generalized support for various ref types Added ↵Tom Faulhaber
pprint tests for various datatypes Bring private var access in line with the coding standard & all good sense Add support for PersistentQueue objects Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-20clear macro meta #352Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-20more code review of #311Stuart Halloway
- better docstring - so long dangerous recursive delete, we hardly knew ye Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-20tweaks to java.io based on community feedbackStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-20promote clojure.contrib.io to clojure.java.io (with api changes)Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-19test for #317Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-17handle bad keyword syntax #334Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-05-07make error expectation 1.5/1.6 agnosticStuart Halloway
2010-05-07Rename two vec-test to be distinct and fix upper bound on random sequence ↵Daniel Solano Gómez
modifier, see #341 Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>