stdlib has the definition:
assert=: 0 0 $ 13!:8^:((0 e. ])`(12"_))
which accepts a wrong input e.g.
assert 1 2 1
NB. an error expected, not an empty outputThis definition may be fixed as: assert=: 0 0 $ 13!:8^:((1 +./@:~: ])`(12"_)) to match (assert.) control behavior: assert 1 2 1 |assertion failure: assert | assert 1 2 1 -- Regards, Igor ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
