Fork me on GitHub
#cljs-dev
<
2015-11-30
>
spinningtopsofdoom18:11:07

@martinklepsch: I ran your port of collection check against the Lean HAMT port. It worked in the browser (chromium) up to 1000000 tests but fails on node (4.2.2) and doesn't print out the action that it fails on

spinningtopsofdoom18:11:19

I've only tried my machine so far, I'll keep you updated on anything new I find

nberger19:11:41

@spinningtopsofdoom: I have an idea of why it's not printing the failure (test.chuck not reporting a :shrunk on an exception). If I want to try it in my machine, what do I need? I mean, can I get the Lean HAMT port? About collection-check I guess it's @martinklepsch fork

spinningtopsofdoom19:11:42

You'll need to get lean map (here https://github.com/bendyworks/lean-map). Look in the script directory for the node / browser repls.

nberger19:11:33

Cool, I'll take a look

spinningtopsofdoom19:11:29

This is the setup you'll need for the CLJS port of collection check 1. git clone https://github.com/martinklepsch/test.chuck.git 2. cd test.chuck; git checkout extensible-shrunk-report; lein install 3. git clone https://github.com/martinklepsch/collection-check-1.git 4. cd collection-check-1; boot build-jar 5. use [collection-check "0.1.7-SNAPSHOT”]

spinningtopsofdoom19:11:35

AFAICT it's only failing in node

spinningtopsofdoom19:11:16

Feel free to ping me with any help you need to get anything setuo

nberger20:11:39

Cool @spinningtopsofdoom, will let you know about any news

martinklepsch20:11:46

My collection check fork uses latest test.chuck and should properly report minimal cases

nberger20:11:09

even when on exceptions out of assertions @martinklepsch?

nberger20:11:51

Maybe that's not the issue, but I think test.chuck won't be reporting failures in that case (thought the :shrunk report mechanism)

martinklepsch20:11:29

@nberger: it's been a while... Not 100% sure but I thought I checked this

nberger20:11:34

@martinklepsch: No worries. I'm not 100% sure if that's the issue either. I'll let you both know of any finding

spinningtopsofdoom20:11:26

@nberger and @martinklepsch I'm running (cc/assert-map-like 100 (.-EMPTY cljs.lean-map.core/PersistentHashMap) (gen/tuple gen/int) (gen/tuple gen/int)) and getting

FAIL in () (collection_check/core.js:540:53)
map-like
expected: (= (hash a) (hash b))
  actual: (not (= -1161039890 -1296016722))

spinningtopsofdoom20:11:36

In both the browser and node repls with Cursive.

nberger20:11:50

I'll take a look later. At first sight I'd say it's not what I was talking about an exception not in an assertion...

martinklepsch22:11:50

@spinningtopsofdoom: are you running my collection check fork?

spinningtopsofdoom22:11:01

I may have gotten some setup messed up I'll retry building your forks tonight