Lines Matching refs:tx
9 function tx(fn, msg) {
459 tx(function () {new Decimal(1.23).toFixed('3')}, "(1.23).toFixed('3')");
460 tx(function () {new Decimal(1.23).toFixed(new Decimal('3'))}, "(1.23).toFixed(new Decimal('3'))");
461 tx(function () {new Decimal(1.23).toFixed(null)}, "(1.23).toFixed(null)");
462 tx(function () {new Decimal(1.23).toFixed(NaN)}, "(1.23).toFixed(NaN)");
463 tx(function () {new Decimal(1.23).toFixed('NaN')}, "(1.23).toFixed('NaN')");
464 tx(function () {new Decimal(1.23).toFixed([])}, "(1.23).toFixed([])");
465 tx(function () {new Decimal(1.23).toFixed({})}, "(1.23).toFixed({})");
466 tx(function () {new Decimal(1.23).toFixed('')}, "(1.23).toFixed('')");
467 tx(function () {new Decimal(1.23).toFixed(' ')}, "(1.23).toFixed(' ')");
468 tx(function () {new Decimal(1.23).toFixed('hello')}, "(1.23).toFixed('hello')");
469 tx(function () {new Decimal(1.23).toFixed('\t')}, "(1.23).toFixed('\t')");
470 tx(function () {new Decimal(1.23).toFixed(new Date)}, "(1.23).toFixed(new Date)");
471 tx(function () {new Decimal(1.23).toFixed(new RegExp)}, "(1.23).toFixed(new RegExp)");
472 tx(function () {new Decimal(1.23).toFixed(2.01)}, "(1.23).toFixed(2.01)");
473 tx(function () {new Decimal(1.23).toFixed(10.5)}, "(1.23).toFixed(10.5)");
474 tx(function () {new Decimal(1.23).toFixed('1.1e1')}, "(1.23).toFixed('1.1e1')");
475 tx(function () {new Decimal(1.23).toFixed(true)}, "(1.23).toFixed(true)");
476 tx(function () {new Decimal(1.23).toFixed(false)}, "(1.23).toFixed(false)");
477 tx(function () {new Decimal(1.23).toFixed(function (){})}, "(1.23).toFixed(function (){})");
479 tx(function () {new Decimal('123.45').toFixed(1e9 + 1)}, ".toFixed(1e9 + 1)");
480 tx(function () {new Decimal('123.45').toFixed('-0.01')}, ".toFixed('-0.01')");
481 tx(function () {new Decimal('123.45').toFixed('-1e-1')}, ".toFixed('-1e-1')");
482 tx(function () {new Decimal('123.45').toFixed(Infinity)}, ".toFixed(Infinity)");
483 tx(function () {new Decimal('123.45').toFixed('-Infinity')}, ".toFixed('-Infinity')");
485 tx(function () {new Decimal(1.23).toFixed(1, '3')}, "(1.23).toFixed(1, '3')");
486 tx(function () {new Decimal(1.23).toFixed(1, new Decimal('3'))}, "(1.23).toFixed(1, new Decimal('3'))");
487 tx(function () {new Decimal(1.23).toFixed(1, null)}, "(1.23).toFixed(1, null)");
488 tx(function () {new Decimal(1.23).toFixed(1, NaN)}, "(1.23).toFixed(1, NaN)");
489 tx(function () {new Decimal(1.23).toFixed(1, 'NaN')}, "(1.23).toFixed(1, 'NaN')");
490 tx(function () {new Decimal(1.23).toFixed(1, [])}, "(1.23).toFixed(1, [])");
491 tx(function () {new Decimal(1.23).toFixed(1, {})}, "(1.23).toFixed(1, {})");
492 tx(function () {new Decimal(1.23).toFixed(1, '')}, "(1.23).toFixed(1, '')");
493 tx(function () {new Decimal(1.23).toFixed(1, ' ')}, "(1.23).toFixed(1, ' ')");
494 tx(function () {new Decimal(1.23).toFixed(1, 'hello')}, "(1.23).toFixed(1, 'hello')");
495 tx(function () {new Decimal(1.23).toFixed(1, '\t')}, "(1.23).toFixed(1, '\t')");
496 tx(function () {new Decimal(1.23).toFixed(1, new Date)}, "(1.23).toFixed(1, new Date)");
497 tx(function () {new Decimal(1.23).toFixed(1, new RegExp)}, "(1.23).toFixed(1, new RegExp)");
498 tx(function () {new Decimal(1.23).toFixed(1, 2.01)}, "(1.23).toFixed(1, 2.01)");
499 tx(function () {new Decimal(1.23).toFixed(1, 10.5)}, "(1.23).toFixed(1, 10.5)");
500 tx(function () {new Decimal(1.23).toFixed(1, '1.1e1')}, "(1.23).toFixed(1, '1.1e1')");
501 tx(function () {new Decimal(1.23).toFixed(1, true)}, "(1.23).toFixed(1, true)");
502 tx(function () {new Decimal(1.23).toFixed(1, false)}, "(1.23).toFixed(1, false)");
503 tx(function () {new Decimal(1.23).toFixed(1, function (){})}, "(1.23).toFixed(1, function (){})");
505 tx(function () {new Decimal('123.45').toFixed(1, 9)}, ".toFixed(1, 9)");
506 tx(function () {new Decimal('123.45').toFixed(1, '-0.01')}, ".toFixed(1, '-0.01')");
507 tx(function () {new Decimal('123.45').toFixed(1, '-1e-1')}, ".toFixed(1, '-1e-1')");
508 tx(function () {new Decimal('123.45').toFixed(1, Infinity)}, ".toFixed(1, Infinity)");
509 tx(function () {new Decimal('123.45').toFixed(1, '-Infinity')}, ".toFixed(1, '-Infinity')");