Add tests for static math methods (#8626)

This commit is contained in:
Siddharth Parmar 2018-09-10 06:38:34 +05:30 committed by Logan Smyth
parent 79b2af5997
commit e372129d00
6 changed files with 185 additions and 0 deletions

View File

@ -0,0 +1,33 @@
Math.acosh;
Math.asinh;
Math.atanh;
Math.cbrt;
Math.clz32;
Math.cosh;
Math.expm1;
Math.fround;
Math.hypot;
Math.imul;
Math.log10;
Math.log1p;
Math.log2;
Math.sign;
Math.sinh;
Math.tanh;
Math.trunc;

View File

@ -0,0 +1,8 @@
{
"plugins": [
["transform-runtime", {
"corejs": 2
}],
"transform-regenerator"
]
}

View File

@ -0,0 +1,51 @@
var _Math$trunc = require("@babel/runtime-corejs2/core-js/math/trunc");
var _Math$tanh = require("@babel/runtime-corejs2/core-js/math/tanh");
var _Math$sinh = require("@babel/runtime-corejs2/core-js/math/sinh");
var _Math$sign = require("@babel/runtime-corejs2/core-js/math/sign");
var _Math$log2 = require("@babel/runtime-corejs2/core-js/math/log2");
var _Math$log1p = require("@babel/runtime-corejs2/core-js/math/log1p");
var _Math$log = require("@babel/runtime-corejs2/core-js/math/log10");
var _Math$imul = require("@babel/runtime-corejs2/core-js/math/imul");
var _Math$hypot = require("@babel/runtime-corejs2/core-js/math/hypot");
var _Math$fround = require("@babel/runtime-corejs2/core-js/math/fround");
var _Math$expm = require("@babel/runtime-corejs2/core-js/math/expm1");
var _Math$cosh = require("@babel/runtime-corejs2/core-js/math/cosh");
var _Math$clz = require("@babel/runtime-corejs2/core-js/math/clz32");
var _Math$cbrt = require("@babel/runtime-corejs2/core-js/math/cbrt");
var _Math$atanh = require("@babel/runtime-corejs2/core-js/math/atanh");
var _Math$asinh = require("@babel/runtime-corejs2/core-js/math/asinh");
var _Math$acosh = require("@babel/runtime-corejs2/core-js/math/acosh");
_Math$acosh;
_Math$asinh;
_Math$atanh;
_Math$cbrt;
_Math$clz;
_Math$cosh;
_Math$expm;
_Math$fround;
_Math$hypot;
_Math$imul;
_Math$log;
_Math$log1p;
_Math$log2;
_Math$sign;
_Math$sinh;
_Math$tanh;
_Math$trunc;

View File

@ -0,0 +1,33 @@
Math.acosh;
Math.asinh;
Math.atanh;
Math.cbrt;
Math.clz32;
Math.cosh;
Math.expm1;
Math.fround;
Math.hypot;
Math.imul;
Math.log10;
Math.log1p;
Math.log2;
Math.sign;
Math.sinh;
Math.tanh;
Math.trunc;

View File

@ -0,0 +1,9 @@
{
"plugins": [
["transform-runtime", {
"corejs": 2,
"version": "^7.0.1"
}],
"transform-regenerator"
]
}

View File

@ -0,0 +1,51 @@
var _Math$trunc = require("@babel/runtime-corejs2/core-js/math/trunc");
var _Math$tanh = require("@babel/runtime-corejs2/core-js/math/tanh");
var _Math$sinh = require("@babel/runtime-corejs2/core-js/math/sinh");
var _Math$sign = require("@babel/runtime-corejs2/core-js/math/sign");
var _Math$log2 = require("@babel/runtime-corejs2/core-js/math/log2");
var _Math$log1p = require("@babel/runtime-corejs2/core-js/math/log1p");
var _Math$log = require("@babel/runtime-corejs2/core-js/math/log10");
var _Math$imul = require("@babel/runtime-corejs2/core-js/math/imul");
var _Math$hypot = require("@babel/runtime-corejs2/core-js/math/hypot");
var _Math$fround = require("@babel/runtime-corejs2/core-js/math/fround");
var _Math$expm = require("@babel/runtime-corejs2/core-js/math/expm1");
var _Math$cosh = require("@babel/runtime-corejs2/core-js/math/cosh");
var _Math$clz = require("@babel/runtime-corejs2/core-js/math/clz32");
var _Math$cbrt = require("@babel/runtime-corejs2/core-js/math/cbrt");
var _Math$atanh = require("@babel/runtime-corejs2/core-js/math/atanh");
var _Math$asinh = require("@babel/runtime-corejs2/core-js/math/asinh");
var _Math$acosh = require("@babel/runtime-corejs2/core-js/math/acosh");
_Math$acosh;
_Math$asinh;
_Math$atanh;
_Math$cbrt;
_Math$clz;
_Math$cosh;
_Math$expm;
_Math$fround;
_Math$hypot;
_Math$imul;
_Math$log;
_Math$log1p;
_Math$log2;
_Math$sign;
_Math$sinh;
_Math$tanh;
_Math$trunc;