bodil / purescript-signal

Elm style FRP library for PureScript
Apache License 2.0
258 stars 44 forks source link

Fixed test suit to work with psc-0.9.1 #46

Closed eskimor closed 8 years ago

eskimor commented 8 years ago

It compiles -tests fail, maybe you could have a look?

8 tests failed:

In "dropRepeats only yields when value is /= previous": expected 1 but got 3

In "zip with Tuple yields a tuple of both signals": expected (Tuple 1 1) but got (Tuple 3 3)

In "sum up values with foldp": expected 1 but got 15

In "filter values with filter": expected 0 but got 4

In "filter Maybe values with filterMap": expected 0 but got 4

In "flatten flattens values": expected 1 but got 7

In "delayed signal yields same values": expected 1 but got 5

In "since yields true only once for multiple yields, then false": test timed out after 25ms

eskimor commented 8 years ago

@bodil is this ok?

bodil commented 8 years ago

The reason the tests are still failing is that the latest version of test-unit is running them concurrently, and Node's scheduler is terrible - it's going to be a bit of a project cleaning that up. I guess tests which fail are still better than tests which don't compile, though.