Here's the link to the test 
file: https://github.com/laforge49/aatree/blob/master/test/aatree/core_test.clj

On Friday, September 4, 2015 at 2:26:52 PM UTC-4, William la Forge wrote:
>
> I've now finished an initial draft of AA Tree Map and it passes 
> collection-check:
>
>
> (deftest tests
>   (assert-map-like (create-aamap)
>                    gen-element gen-element
>                    ;           {:base (sorted-map) :ordered? true}
>                    ))
>
>
> Unfortunately I had to comment out the test against sorted-map. I was 
> getting this error:
>
> ERROR in (tests) (generators.clj:366)
> Uncaught exception, not in assertion.
> expected: nil
>   actual: java.lang.AssertionError: Assert failed: Args to tuple must be 
> generators
> (every? generator? generators)
>  at clojure.test.check.generators$tuple.doInvoke (generators.clj:366)
>     clojure.lang.RestFn.invoke (RestFn.java:421)
>     collection_check$gen_meta.invoke (collection_check.clj:30)
>     collection_check$gen_map_actions.invoke (collection_check.clj:91)
>     collection_check$assert_map_like.invoke (collection_check.clj:306)
>     collection_check$assert_map_like.invoke (collection_check.clj:299)
>     aatree.core_test/fn (core_test.clj:36)
>     clojure.test$test_var$fn__7670.invoke (test.clj:704)
>     clojure.test$test_var.invoke (test.clj:704)
>     clojure.test$test_vars$fn__7692$fn__7697.invoke (test.clj:722)
>     clojure.test$default_fixture.invoke (test.clj:674)
>     clojure.test$test_vars$fn__7692.invoke (test.clj:722)
>     clojure.test$default_fixture.invoke (test.clj:674)
>     clojure.test$test_vars.invoke (test.clj:718)
>     clojure.test$test_all_vars.invoke (test.clj:728)
>     clojure.test$test_ns.invoke (test.clj:747)
>     clojure.core$map$fn__4553.invoke (core.clj:2624)
>     clojure.lang.LazySeq.sval (LazySeq.java:40)
>     clojure.lang.LazySeq.seq (LazySeq.java:49)
>     clojure.lang.Cons.next (Cons.java:39)
>     clojure.lang.RT.boundedLength (RT.java:1735)
>     clojure.lang.RestFn.applyTo (RestFn.java:130)
>     clojure.core$apply.invoke (core.clj:632)
>     clojure.test$run_tests.doInvoke (test.clj:762)
>     clojure.lang.RestFn.applyTo (RestFn.java:137)
>     clojure.core$apply.invoke (core.clj:630)
>     user$eval85$fn__140$fn__171.invoke (form-init7529748499207850099.clj:1)
>     user$eval85$fn__140$fn__141.invoke (form-init7529748499207850099.clj:1)
>     user$eval85$fn__140.invoke (form-init7529748499207850099.clj:1)
>     user$eval85.invoke (form-init7529748499207850099.clj:1)
>     clojure.lang.Compiler.eval (Compiler.java:6782)
>     clojure.lang.Compiler.eval (Compiler.java:6772)
>     clojure.lang.Compiler.load (Compiler.java:7227)
>     clojure.lang.Compiler.loadFile (Compiler.java:7165)
>     clojure.main$load_script.invoke (main.clj:275)
>     clojure.main$init_opt.invoke (main.clj:280)
>     clojure.main$initialize.invoke (main.clj:308)
>     clojure.main$null_opt.invoke (main.clj:343)
>     clojure.main$main.doInvoke (main.clj:421)
>     clojure.lang.RestFn.invoke (RestFn.java:421)
>     clojure.lang.Var.invoke (Var.java:383)
>     clojure.lang.AFn.applyToHelper (AFn.java:156)
>     clojure.lang.Var.applyTo (Var.java:700)
>     clojure.main.main (main.java:37)
>
> Any suggestions?
>
> On Monday, August 24, 2015 at 8:46:12 AM UTC-4, icamts wrote:
>>
>> Not a pointer but this may help in testing your implementation: 
>> https://github.com/ztellman/collection-check
>>
>> Il giorno lunedì 10 agosto 2015 00:31:25 UTC+2, William la Forge ha 
>> scritto:
>>>
>>> I've done a lot with AA trees in the past, creating variations that are 
>>> immutable, durable (replacing b-trees) and versioned of vectors, maps and 
>>> sets.
>>>
>>> I would like to migrate these ideas from Java to Clojure, while 
>>> implementing the interfaces appropriate for Clojure.
>>>
>>> Still being very much a newbie, I'd appreciate some pointers, relevant 
>>> docs and/or examples.
>>>
>>> Thanks!
>>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to