Skip to content

Commit

Permalink
🤖 chore: Patch tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Jun 27, 2022
1 parent e01a192 commit fda1ad7
Show file tree
Hide file tree
Showing 16 changed files with 112 additions and 96 deletions.
13 changes: 7 additions & 6 deletions test/src/isnull.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isnull( %s ) === %s", n, v );

deepEqual( type.isnull( n ), v, msg );
t.deepEqual( type.isnull( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isnull", function () {
test( "isnull", t => {

one( 0, false );
one( NaN, false );
Expand Down
13 changes: 7 additions & 6 deletions test/src/isundefined.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isundefined( %s ) === %s", n, v );

deepEqual( type.isundefined( n ), v, msg );
t.deepEqual( type.isundefined( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isundefined", function () {
test( "isundefined", t => {

one( 0, false );
one( NaN, false );
Expand Down
13 changes: 7 additions & 6 deletions test/src/number/isfinite.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isfinite( %s ) === %s", n, v );

deepEqual( type.isfinite( n ), v, msg );
t.deepEqual( type.isfinite( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isfinite", function () {
test( "isfinite", t => {

one( 0, true );
one( NaN, false );
Expand Down
13 changes: 7 additions & 6 deletions test/src/number/isint.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isint( %s ) === %s", n, v );

deepEqual( type.isint( n ), v, msg );
t.deepEqual( type.isint( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isint", function () {
test( "isint", t => {

one( 0, true );
one( NaN, false );
Expand Down
13 changes: 7 additions & 6 deletions test/src/number/isint32.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isint32( %s ) === %s", n, v );

deepEqual( type.isint32( n ), v, msg );
t.deepEqual( type.isint32( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isint32", function () {
test( "isint32", t => {

one( 0, true );
one( NaN, false );
Expand Down
13 changes: 7 additions & 6 deletions test/src/number/isnan.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isnan( %s ) === %s", n, v );

deepEqual( type.isnan( n ), v, msg );
t.deepEqual( type.isnan( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isnan", function () {
test( "isnan", t => {

one( 0, false );
one( NaN, true );
Expand Down
13 changes: 7 additions & 6 deletions test/src/number/isnegativeinfinity.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isnegativeinfinity( %s ) === %s", n, v );

deepEqual( type.isnegativeinfinity( n ), v, msg );
t.deepEqual( type.isnegativeinfinity( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isnegativeinfinity", function () {
test( "isnegativeinfinity", t => {

one( 0, false );
one( NaN, false );
Expand Down
13 changes: 7 additions & 6 deletions test/src/number/isnumber.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isnumber( %s ) === %s", n, v );

deepEqual( type.isnumber( n ), v, msg );
t.deepEqual( type.isnumber( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isnumber", function () {
test( "isnumber", t => {

one( 0, true );
one( NaN, true );
Expand Down
13 changes: 7 additions & 6 deletions test/src/number/ispositiveinfinity.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.ispositiveinfinity( %s ) === %s", n, v );

deepEqual( type.ispositiveinfinity( n ), v, msg );
t.deepEqual( type.ispositiveinfinity( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "ispositiveinfinity", function () {
test( "ispositiveinfinity", t => {

one( 0, false );
one( NaN, false );
Expand Down
13 changes: 7 additions & 6 deletions test/src/object/isarray.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isarray( %s ) === %s", n, v );

deepEqual( type.isarray( n ), v, msg );
t.deepEqual( type.isarray( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isarray", function () {
test( "isarray", t => {

one( 0, false );
one( NaN, false );
Expand Down
13 changes: 7 additions & 6 deletions test/src/object/isboolean.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isboolean( %s ) === %s", n, v );

deepEqual( type.isboolean( n ), v, msg );
t.deepEqual( type.isboolean( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isboolean", function () {
test( "isboolean", t => {

one( 0, false );
one( NaN, false );
Expand Down
13 changes: 7 additions & 6 deletions test/src/object/isdate.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
import test from 'ava';
import * as type from '../../../src';

var util, one, two;

util = require( "util" );
import util from "util" ;

one = function ( n, v ) {
function one ( n, v ) {

var msg;

msg = util.format( "type.isdate( %s ) === %s", n, v );

deepEqual( type.isdate( n ), v, msg );
t.deepEqual( type.isdate( n ), v, msg );
};

two = function ( n, v ) {
function two ( n, v ) {
one( n, v );
one( -n, v );
};



test( "isdate", function () {
test( "isdate", t => {

one( 0, false );
one( NaN, false );
Expand Down
Loading

0 comments on commit fda1ad7

Please sign in to comment.