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
Currently the only allowable operator in a @fact is =>. I have quite a few tests that do other boolean tests (e.g. check that @allocated is less than N bytes). Right now I defined a function "lessthan" that's a FactCheck-compatible test, but it's pretty verbose.
What I'd like is for the @fact macro to also handle other top-level boolean operators like <=, <, etc? Then I could just do:
@fact (@allocated my_func()) < 200
Are there any fundamental architecture issues that make this a bad idea?
Currently the only allowable operator in a
@factis=>. I have quite a few tests that do other boolean tests (e.g. check that@allocatedis less than N bytes). Right now I defined a function "lessthan" that's a FactCheck-compatible test, but it's pretty verbose.What I'd like is for the
@factmacro to also handle other top-level boolean operators like<=,<, etc? Then I could just do:Are there any fundamental architecture issues that make this a bad idea?