Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test ('Applicative', () => {
eq (Z.Applicative.test (Left (Useless))) (true);
eq (Z.Applicative.test (Right (Useless))) (true);
});
test ('Applicative', () => {
eq (Z.Applicative.test (Nothing)) (true);
eq (Z.Applicative.test (Just (Useless))) (true);
});
test ('Applicative', () => {
eq (Z.Applicative.test (Left (Useless))) (true);
eq (Z.Applicative.test (Right (Useless))) (true);
});
test ('Applicative', () => {
eq (Z.Applicative.test (Nothing)) (true);
eq (Z.Applicative.test (Just (Useless))) (true);
});
test ('Applicative', () => {
eq (Z.Applicative.test (Identity (Useless))) (true);
});
interchange: assert.forall2 (function(u, y) {
return Z.Applicative.test (u) &&
equals (ap (u) (pure (y)),
ap (pure ($ (y))) (u));
})
identity: assert.forall1 (function(v) {
return Z.Applicative.test (v) &&
equals (ap (pure (identity)) (v),
v);
}),