bodil / purescript-signal

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

Some tests fail #47

Closed menelaos closed 8 years ago

menelaos commented 8 years ago

If I clone this repo and do

npm install bower pulp
bower install
pulp test

I get the following errors:

* Building project in /home/me/somewhere/purescript-signal
* Build successful.
* Running tests...
✓ Passed: subscribe to constant must yield once
✓ Passed: merge two constants yields first constant
✓ Passed: mergeMany a list of constants yields first constant
✓ Passed: map function over signal
✓ Passed: sampleOn samples values from sig2 when sig1 changes
✓ Passed: dropRepeats only yields when value is /= previous
✓ Passed: zip with Tuple yields a tuple of both signals
✓ Passed: sum up values with foldp
✓ Passed: filter values with filter
✓ Passed: filter Maybe values with filterMap
✓ Passed: flatten flattens values
✓ Passed: channel subscriptions yield when we send to the channel
✓ Passed: delayed signal yields same values
✓ Passed: since yields true only once for multiple yields, then false
✓ Passed: debounce yields only the most recent value in a series shorter than the interval

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

* ERROR: Subcommand terminated with exit code 1