Skip to main content

test_atomic

Macro test_atomic 

Source
macro_rules! test_atomic {
    (@to_comparison >=) => { ... };
    (@to_comparison <=) => { ... };
    (@to_comparison ==) => { ... };
    (@to_comparison !=) => { ... };
    ([$name:ident $comp:tt $value:expr]) => { ... };
}
Expand description

A convenient way to construct a TestAtomic.

ยงExample

pumpkin_checking::test_atomic!([x >= 5]);
pumpkin_checking::test_atomic!([y != 10]);