Lines Matching full:math
16 it('handles "Math.random()"', function() {
17 assert(constaninople.isConstant('Math.random()') === false);
19 it('handles "Math.random("', function() {
20 assert(constaninople.isConstant('Math.random(') === false);
22 it('handles "Math.floor(10.5)" with {Math: Math} as constants', function() {
23 assert(constaninople.isConstant('Math.floor(10.5)', {Math: Math}) === true); property
56 it('handles "Math.random()"', function() {
58 constaninople.toConstant('Math.random()');
62 assert(false, 'Math.random() should result in an error');
64 it('handles "Math.random("', function() {
66 constaninople.toConstant('Math.random(');
70 assert(false, 'Math.random( should result in an error');
72 it('handles "Math.floor(10.5)" with {Math: Math} as constants', function() {
73 assert(constaninople.toConstant('Math.floor(10.5)', {Math: Math}) === 10); property