Some unary functions have trivial implementations. Others however have more complicated implementations on either or both backends. These should be unit tested so we can be sure that:
Backends don't diverge.
Implementations are correct.
Writing these unit tests is cumbersome, so I made a macro that makes things a bit easier:
Some unary functions have trivial implementations. Others however have more complicated implementations on either or both backends. These should be unit tested so we can be sure that:
Writing these unit tests is cumbersome, so I made a macro that makes things a bit easier:
This also allows for some TDD, and will make it easier to verify new backends in the future.