wasm-bindgen/crates/webidl-tests/namespace.js
Richard Dodd 4f0ddd25ce Fix tests
2018-08-12 21:27:27 +01:00

12 lines
232 B
JavaScript

const strictEqual = require('assert').strictEqual;
global.mathtest = {};
global.mathtest.powf = function powf(base, exp) {
return Math.pow(base, exp);
}
global.mathtest.add_one = function add_one(val) {
return val + 1;
}