You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice that deepEqual considers Failure and Success to be, well, equal… when we expect it to fail. We've tested it with the expect.js assertion library and could reproduce the issue. Also note that the .toString() for both Failure and Success return reasonable strings, while logging them with console prints the exact same string.
Just wanted to bring it to your attention, given we're doing some exercises using data.validation and thought you might have faced this…
hi @vvgomes :)
we noticed that all tests related to success or failure are emitting false positive, for example, this one https://github.com/vvgomes/predicado/blob/master/test/predicado.test.js#L26 if you change from
Success
toFailure
:Here's a few experiments with the REPL:
Notice that
deepEqual
considersFailure
andSuccess
to be, well, equal… when we expect it to fail. We've tested it with theexpect.js
assertion library and could reproduce the issue. Also note that the.toString()
for bothFailure
andSuccess
return reasonable strings, while logging them withconsole
prints the exact same string.Just wanted to bring it to your attention, given we're doing some exercises using
data.validation
and thought you might have faced this…Thanks!
cc/ @gtramontina @ronaldotijucas @alabeduarte
The text was updated successfully, but these errors were encountered: