- commit
- b87da0bc77c2b69f409a5ac34631c21dba0e2989
- parent
- 84a0fa2c237d41b149ce4a4dc2c838bc972afca8
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2017-05-30 07:39
test pow with large numbers
Diffstat
| M | test/math.js | 7 | +++++-- |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/math.js b/test/math.js
@@ -32,8 +32,11 @@ describe('math', function() {
32 32 it('pow(64, -1/2) == .125', function() {
33 33 sassaby.func('pow').calledWithArgs('64', '-1/2').equals('.125');
34 34 });
35 -1 it('pow(12, 3.4)', function() {
36 -1 shared.similar(sassaby.func('pow').calledWithArgs('12', '3.4'), Math.pow(12, 3.4));
-1 35 it('pow(1200, 3.4)', function() {
-1 36 shared.similar(sassaby.func('pow').calledWithArgs('1200', '3.4'), Math.pow(1200, 3.4), 0.1);
-1 37 });
-1 38 it('pow(1200.3, 3.4)', function() {
-1 39 shared.similar(sassaby.func('pow').calledWithArgs('1200.3', '3.4'), Math.pow(1200.3, 3.4), 0.1);
37 40 });
38 41 it('pow(3px, 2.4) throws', function() {
39 42 assert.throws(function () {