Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/d/sneaky1_runme.2.d
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

12 lines
291 B
D

module sneaky1_runme;
import std.exception;
import sneaky1.sneaky1;
void main() {
enforce(add(30, 2) == 32, "add test failed");
enforce(subtract(20, 2) == 18, "subtract test failed");
enforce(mul(20, 2) == 40, "mul test failed");
enforce(divide(20, 2) == 10, "div test failed");
}