Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Nov 1, 2023
1 parent a831fcf commit 2842182
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 51 deletions.
1 change: 1 addition & 0 deletions .github/.keepalive
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2023-11-01T06:22:29.426Z
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ jobs:
fi
# Trim leading and trailing whitespace:
dep=$(echo "$dep" | xargs)
version="^$(npm view $dep version)"
version="$(npm view $dep version)"
if [[ -z "$version" ]]; then
continue
fi
version="^$version"
jq -r --arg dep "$dep" --arg version "$version" '.dependencies[$dep] = $version' package.json > package.json.tmp
mv package.json.tmp package.json
done
Expand All @@ -192,7 +196,11 @@ jobs:
fi
# Trim leading and trailing whitespace:
dep=$(echo "$dep" | xargs)
version="^$(npm view $dep version)"
version="$(npm view $dep version)"
if [[ -z "$version" ]]; then
continue
fi
version="^$version"
jq -r --arg dep "$dep" --arg version "$version" '.devDependencies[$dep] = $version' package.json > package.json.tmp
mv package.json.tmp package.json
done
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ Stephannie Jiménez Gacha <steff456@hotmail.com>
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
orimiles5 <97595296+orimiles5@users.noreply.github.com>
rei2hu <reimu@reimu.ws>
Robert Gislason <gztown2216@yahoo.com>
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"dependencies": {
"@stdlib/array-base-filled-by": "^0.1.0",
"@stdlib/array-typed-real-ctors": "^0.1.0",
"@stdlib/array-typed-real-dtypes": "^0.1.0",
"@stdlib/array-typed-real-float-dtypes": "^0.1.0",
"@stdlib/array-typed-real-dtypes": "^0.1.1",
"@stdlib/array-typed-real-float-dtypes": "^0.1.1",
"@stdlib/assert-has-own-property": "^0.1.1",
"@stdlib/assert-is-nonnegative-integer": "^0.1.0",
"@stdlib/assert-is-plain-object": "^0.1.1",
Expand All @@ -53,9 +53,9 @@
"@stdlib/utils-define-nonenumerable-read-write-accessor": "^0.1.1"
},
"devDependencies": {
"@stdlib/array-float32": "^0.1.0",
"@stdlib/array-float64": "^0.1.0",
"@stdlib/array-int32": "^0.1.0",
"@stdlib/array-float32": "^0.1.1",
"@stdlib/array-float64": "^0.1.1",
"@stdlib/array-int32": "^0.1.1",
"@stdlib/assert-is-int32array": "^0.1.1",
"@stdlib/bench": "^0.1.0",
"@stdlib/console-log-each": "^0.1.0",
Expand Down
47 changes: 3 additions & 44 deletions test/dist/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,54 +21,13 @@
// MODULES //

var tape = require( 'tape' );
var isInt32Array = require( '@stdlib/assert-is-int32array' );
var random = require( './../../dist' );
var main = require( './../../dist' );


// TESTS //

tape( 'main export is a function', function test( t ) {
tape( 'main export is defined', function test( t ) {
t.ok( true, __filename );
t.strictEqual( typeof random, 'function', 'main export is a function' );
t.end();
});

tape( 'attached to the main export is a `factory` method', function test( t ) {
t.strictEqual( typeof random.factory, 'function', 'has method' );
t.end();
});

tape( 'attached to the main export is a `normalized` method', function test( t ) {
t.strictEqual( typeof random.normalized, 'function', 'has method' );
t.end();
});

tape( 'attached to the main export is the underlying PRNG', function test( t ) {
t.equal( typeof random.PRNG, 'function', 'has property' );
t.end();
});

tape( 'attached to the main export is the generator seed', function test( t ) {
t.equal( isInt32Array( random.seed ), true, 'has property' );
t.end();
});

tape( 'attached to the main export is the generator seed length', function test( t ) {
t.equal( typeof random.seedLength, 'number', 'has property' );
t.end();
});

tape( 'attached to the main export is the generator state', function test( t ) {
t.equal( isInt32Array( random.state ), true, 'has property' );
t.end();
});

tape( 'attached to the main export is the generator state length', function test( t ) {
t.equal( typeof random.stateLength, 'number', 'has property' );
t.end();
});

tape( 'attached to the main export is the generator state size', function test( t ) {
t.equal( typeof random.byteLength, 'number', 'has property' );
t.strictEqual( main !== void 0, true, 'main export is defined' );
t.end();
});

0 comments on commit 2842182

Please sign in to comment.