swig/Examples/test-suite/javascript/preproc_runme.js
2013-09-03 16:57:40 +02:00

14 lines
246 B
JavaScript

var preproc = require("./preproc");
if (preproc.endif != 1)
throw "RuntimeError";
if (preproc.define != 1)
throw "RuntimeError";
if (preproc.defined != 1)
throw "RuntimeError";
if (2*preproc.one != preproc.two)
throw "RuntimeError";