forked from kripken/ammo.js
-
Notifications
You must be signed in to change notification settings - Fork 11
/
test.js
46 lines (41 loc) · 981 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
var Ammo = require('./builds/ammo');
global.Ammo = Ammo;
function assert (b, s) {
s = s == null ? b : s;
if (b) {
console.log(s);
} else {
console.error('err:', s);
}
}
global.assert = assert;
function assertEq (a, b, s) {
if (a == b) {
if (s == null) s = 'ok';
console.log(s);
} else {
if (s == null) s = 'fail';
console.error('err:', s);
}
}
global.assertEq = assertEq;
function assertNeq (a, b, s) {
if (a != b) {
if (s == null) s = 'ok';
console.log(s);
} else {
if (s == null) s = 'fail';
console.error('err:', s);
}
}
global.assertNeq = assertNeq;
global.print = console.log;
// require('./tests/basics');
// require('./tests/2');
// require('./tests/3');
// require('./tests/compoundShape');
// require('./tests/constraint');
// require('./tests/stress');
// require('./tests/testutils');
// require('./tests/userData');
require('./tests/wrapping');