iseven

Check if the input is an even integer


License
LGPL-3.0
Install
dub fetch iseven --version 1.0.2

Documentation

isEven: tests if the past integer is an even number

alt text Coverage Latest version

assert( isEven(0));
assert(!isEven(1));
assert( isEven(2));

assert( isEven(-0));
assert(!isEven(-1));
assert( isEven(-2));

More of a joke, but a nice example how to test with different input types, get the ci set up and other things.