1
+ abs,"var y = abs( -1.0 )\nvar x = new Float64Array( [ -1.0, -2.0 ] );\ny = abs( x )\nx = [ -1.0, -2.0 ];\ny = abs( x )\nx = array( [ [ -1.0, -2.0 ], [ -3.0, -4.0 ] ] );\ny = abs( x )\ny.get( 0, 1 )\n"
1
2
AFINN_96,"var list = AFINN_96()\n"
2
3
AFINN_111,"var list = AFINN_111()\n"
3
4
alias2pkg,"var v = alias2pkg( 'base.sin' )\n"
@@ -894,8 +895,7 @@ base.minabs,"var v = base.minabs( 3.14, -4.2 )\nv = base.minabs( 5.9, 3.14, 4.2
894
895
base.minmax,"var v = base.minmax( 3.14, 4.2 )\nv = base.minmax( 5.9, 3.14, 4.2 )\nv = base.minmax( 3.14, NaN )\nv = base.minmax( +0.0, -0.0 )\nv = base.minmax( 3.14 )\nvar out = new Array( 2 );\nv = base.minmax( out, 3.14 )\nvar bool = ( v === out )\n"
895
896
base.minmaxabs,"var v = base.minmaxabs( 3.14, 4.2 )\nv = base.minmaxabs( -5.9, 3.14, 4.2 )\nv = base.minmaxabs( 3.14, NaN )\nv = base.minmaxabs( +0.0, -0.0 )\nv = base.minmaxabs( 3.14 )\nvar out = new Array( 2 );\nv = base.minmaxabs( out, 3.14 )\nvar bool = ( v === out )\n"
896
897
base.modf,"var parts = base.modf( 3.14 )\nparts = base.modf( 3.14 )\nparts = base.modf( +0.0 )\nparts = base.modf( -0.0 )\nparts = base.modf( PINF )\nparts = base.modf( NINF )\nparts = base.modf( NaN )\nvar out = new Float64Array( 2 );\nparts = base.modf( out, 3.14 )\nvar bool = ( parts === out )\n"
897
- base.ndarray,"var ctor = base.ndarray( 'float64', 3 )\nvar b = [ 1, 2, 3, 4 ]; // underlying data buffer\nvar d = [ 2, 2 ]; // shape\nvar s = [ 2, 1 ]; // strides\nvar o = 0; // index offset\nvar arr = ctor( b, d, s, o, 'row-major' )\nvar v = arr.get( 1, 1 )\nv = arr.iget( 3 )\narr.set( 1, 1, 40 );\narr.get( 1, 1 )\narr.iset( 3, 99 );\narr.get( 1, 1 )\n"
898
- base.ndarrayMemoized,"var ctor = base.ndarrayMemoized( 'float64', 3 )\nvar f = base.ndarrayMemoized( 'float64', 3 )\nvar bool = ( f === ctor )\nvar b = [ 1, 2, 3, 4 ]; // underlying data buffer\nvar d = [ 2, 2 ]; // shape\nvar s = [ 2, 1 ]; // strides\nvar o = 0; // index offset\nvar arr = ctor( b, d, s, o, 'row-major' )\nvar v = arr.get( 1, 1 )\nv = arr.iget( 3 )\narr.set( 1, 1, 40 );\narr.get( 1, 1 )\narr.iset( 3, 99 );\narr.get( 1, 1 )\n"
898
+ base.ndarray,"var b = [ 1, 2, 3, 4 ]; // underlying data buffer\nvar d = [ 2, 2 ]; // shape\nvar s = [ 2, 1 ]; // strides\nvar o = 0; // index offset\nvar arr = ctor( 'generic', b, d, s, o, 'row-major' )\nvar v = arr.get( 1, 1 )\nv = arr.iget( 3 )\narr.set( 1, 1, 40 );\narr.get( 1, 1 )\narr.iset( 3, 99 );\narr.get( 1, 1 )\n"
899
899
base.negafibonacci,"var y = base.negafibonacci( 0 )\ny = base.negafibonacci( -1 )\ny = base.negafibonacci( -2 )\ny = base.negafibonacci( -3 )\ny = base.negafibonacci( -4 )\ny = base.negafibonacci( -79 )\ny = base.negafibonacci( -80 )\ny = base.negafibonacci( NaN )\n"
900
900
base.negalucas,"var y = base.negalucas( 0 )\ny = base.negalucas( -1 )\ny = base.negalucas( -2 )\ny = base.negalucas( -3 )\ny = base.negalucas( -4 )\ny = base.negalucas( -77 )\ny = base.negalucas( -78 )\ny = base.negalucas( NaN )\n"
901
901
base.nonfibonacci,"var v = base.nonfibonacci( 1 )\nv = base.nonfibonacci( 2 )\nv = base.nonfibonacci( 3 )\nv = base.nonfibonacci( NaN )\n"
@@ -2479,6 +2479,7 @@ IMG_LOCOMOTION_HOUSE_CAT,"var img = IMG_LOCOMOTION_HOUSE_CAT()\n"
2479
2479
IMG_LOCOMOTION_NUDE_MALE,"var img = IMG_LOCOMOTION_NUDE_MALE()\n"
2480
2480
IMG_MARCH_PASTORAL,"var img = IMG_MARCH_PASTORAL()\n"
2481
2481
IMG_NAGASAKI_BOATS,"var img = IMG_NAGASAKI_BOATS()\n"
2482
+ inabs,"var x = new Float64Array( [ -1.0, -2.0 ] );\nvar y = inabs( x )\nvar bool = ( y === x )\nx = [ -1.0, -2.0 ];\ny = inabs( x )\nbool = ( y === x )\nx = array( [ [ -1.0, -2.0 ], [ -3.0, -4.0 ] ] );\ny = inabs( x )\ny.get( 0, 1 )\nbool = ( y === x )\n"
2482
2483
incrapcorr,"var accumulator = incrapcorr();\nvar ar = accumulator()\nar = accumulator( 2.0, 1.0 )\nar = accumulator( -5.0, 3.14 )\nar = accumulator()\n"
2483
2484
incrcount,"var accumulator = incrcount();\nvar v = accumulator()\nv = accumulator( 2.0 )\nv = accumulator( -5.0 )\nv = accumulator()\n"
2484
2485
incrcovariance,"var accumulator = incrcovariance();\nvar v = accumulator()\nv = accumulator( 2.0, 1.0 )\nv = accumulator( -5.0, 3.14 )\nv = accumulator()\n"
@@ -3586,7 +3587,6 @@ RE_BASENAME_WINDOWS,"var base = RE_BASENAME_WINDOWS.exec( '\\foo\\bar\\index.js'
3586
3587
RE_COLOR_HEXADECIMAL,"var bool = RE_COLOR_HEXADECIMAL.test( 'ffffff' )\nbool = RE_COLOR_HEXADECIMAL.test( '000' )\nbool = RE_COLOR_HEXADECIMAL.test( 'beep' )\n"
3587
3588
RE_COLOR_HEXADECIMAL.shorthand,"var bool = RE_COLOR_HEXADECIMAL.shorthand.test( 'ffffff' )\nbool = RE_COLOR_HEXADECIMAL.shorthand.test( '000' )\nbool = RE_COLOR_HEXADECIMAL.shorthand.test( 'beep' )\n"
3588
3589
RE_COLOR_HEXADECIMAL.either,"var bool = RE_COLOR_HEXADECIMAL.either.test( 'ffffff' )\nbool = RE_COLOR_HEXADECIMAL.either.test( '000' )\nbool = RE_COLOR_HEXADECIMAL.either.test( 'beep' )\n"
3589
- RE_DECIMAL_NUMBER,"var bool = RE_DECIMAL_NUMBER.test( '1.234' )\nbool = RE_DECIMAL_NUMBER.test( '-1.234' )\nbool = RE_DECIMAL_NUMBER.test( '0.0' )\nbool = RE_DECIMAL_NUMBER.test( '.0' )\nbool = RE_DECIMAL_NUMBER.test( '0' )\nbool = RE_DECIMAL_NUMBER.test( 'beep' )\nvar re = new RegExp( RE_DECIMAL_NUMBER.source, 'g' );\nvar str = '1.234 5.6, 7.8';\nvar out = str.match( re )\n"
3590
3590
RE_DIRNAME.posix,"var dir = RE_DIRNAME.exec( '/foo/bar/index.js' )[ 1 ]\n"
3591
3591
RE_DIRNAME.win32,"var dir = RE_DIRNAME.exec( 'C:\\foo\\bar\\index.js' )[ 1 ]\n"
3592
3592
RE_DIRNAME_POSIX,"var dir = RE_DIRNAME_POSIX.exec( '/foo/bar/index.js' )[ 1 ]\ndir = RE_DIRNAME_POSIX.exec( './foo/bar/.gitignore' )[ 1 ]\ndir = RE_DIRNAME_POSIX.exec( 'foo/file.pdf' )[ 1 ]\ndir = RE_DIRNAME_POSIX.exec( '/foo/bar/file' )[ 1 ]\ndir = RE_DIRNAME_POSIX.exec( 'index.js' )[ 1 ]\ndir = RE_DIRNAME_POSIX.exec( '.' )[ 1 ]\ndir = RE_DIRNAME_POSIX.exec( './' )[ 1 ]\ndir = RE_DIRNAME_POSIX.exec( '' )[ 1 ]\n"
@@ -3639,6 +3639,10 @@ replace,"var out = replace( 'beep', 'e', 'o' )\nfunction replacer( match, p1 ) {
3639
3639
rescape,"var str = rescape( '[A-Z]*' )\n"
3640
3640
resolveParentPath,"function onPath( error, path ) {\n if ( error ) {\n console.error( error.message );\n } else {\n console.log( path );\n }\n };\nresolveParentPath( 'package.json', onPath );\n"
3641
3641
resolveParentPath.sync,"var out = resolveParentPath.sync( 'package.json' );\n"
3642
+ reUtf16SurrogatePair,"var RE = reUtf16SurrogatePair();\nvar bool = RE.test( 'abc\uD800\uDC00def' )\nbool = RE.test( 'abcdef' )\n"
3643
+ reUtf16SurrogatePair.REGEXP,"var RE = reUtf16SurrogatePair.REGEXP;\nvar bool = RE.test( 'abc\uD800\uDC00def' )\nbool = RE.test( 'abcdef' )\n"
3644
+ reUtf16UnpairedSurrogate,"var RE = reUtf16UnpairedSurrogate();\nvar bool = RE.test( 'abc' )\nbool = RE.test( '\uD800' )\n"
3645
+ reUtf16UnpairedSurrogate.REGEXP,"var RE = reUtf16UnpairedSurrogate.REGEXP;\nvar bool = RE.test( 'abc' )\nbool = RE.test( '\uD800' )\n"
3642
3646
reverseArguments,"function foo( a, b, c ) { return [ a, b, c ]; };\nvar bar = reverseArguments( foo );\nvar out = bar( 1, 2, 3 )\n"
3643
3647
reverseString,"var out = reverseString( 'foo' )\nout = reverseString( 'abcdef' )\n"
3644
3648
reviveBasePRNG,"var str = JSON.stringify( base.random.mt19937 );\nvar r = parseJSON( str, reviveBasePRNG )\n"
@@ -3648,6 +3652,9 @@ reviveComplex64,"var str = '{\"type\":\"Complex64\",\"re\":5,\"im\":3}';\nvar z
3648
3652
reviveComplex128,"var str = '{\"type\":\"Complex128\",\"re\":5,\"im\":3}';\nvar z = parseJSON( str, reviveComplex128 )\n"
3649
3653
reviveError,"var str = '{\"type\":\"TypeError\",\"message\":\"beep\"}';\nvar err = JSON.parse( str, reviveError )\n"
3650
3654
reviveTypedArray,"var str = '{\"type\":\"Float64Array\",\"data\":[5,3]}';\nvar arr = parseJSON( str, reviveTypedArray )\n"
3655
+ reWhitespace,"var RE = reWhitespace();\nvar bool = RE.test( '\n' )\nbool = RE.test( ' ' )\nbool = RE.test( 'a' )\n"
3656
+ reWhitespace.REGEXP,"var RE = reWhitespace.REGEXP;\nvar bool = RE.test( '\n' )\nbool = RE.test( ' ' )\nbool = RE.test( 'a' )\n"
3657
+ reWhitespace.REGEXP_CAPTURE,"var RE = reWhitespace.REGEXP_CAPTURE;\nvar str = 'Duplicate capture';\nvar out = replace( str, RE, '$1$1' )\n"
3651
3658
rpad,"var out = rpad( 'a', 5 )\nout = rpad( 'beep', 10, 'p' )\nout = rpad( 'beep', 12, 'boop' )\n"
3652
3659
rtrim,"var out = rtrim( ' \t\t\n Beep \r\n\t ' )\n"
3653
3660
safeintmax,"var m = safeintmax( 'float16' )\nm = safeintmax( 'float32' )\n"
0 commit comments