Skip to content

Commit 137de8e

Browse files
committed
Auto-generated commit
1 parent a004cec commit 137de8e

File tree

5 files changed

+20
-102
lines changed

5 files changed

+20
-102
lines changed

.github/.keepalive

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2023-11-01T05:58:11.459Z

.github/workflows/publish.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ jobs:
182182
fi
183183
# Trim leading and trailing whitespace:
184184
dep=$(echo "$dep" | xargs)
185-
version="^$(npm view $dep version)"
185+
version="$(npm view $dep version)"
186+
if [[ -z "$version" ]]; then
187+
continue
188+
fi
189+
version="^$version"
186190
jq -r --arg dep "$dep" --arg version "$version" '.dependencies[$dep] = $version' package.json > package.json.tmp
187191
mv package.json.tmp package.json
188192
done
@@ -192,7 +196,11 @@ jobs:
192196
fi
193197
# Trim leading and trailing whitespace:
194198
dep=$(echo "$dep" | xargs)
195-
version="^$(npm view $dep version)"
199+
version="$(npm view $dep version)"
200+
if [[ -z "$version" ]]; then
201+
continue
202+
fi
203+
version="^$version"
196204
jq -r --arg dep "$dep" --arg version "$version" '.devDependencies[$dep] = $version' package.json > package.json.tmp
197205
mv package.json.tmp package.json
198206
done

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ Stephannie Jiménez Gacha <steff456@hotmail.com>
3737
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
3838
orimiles5 <97595296+orimiles5@users.noreply.github.com>
3939
rei2hu <reimu@reimu.ws>
40+
Robert Gislason <gztown2216@yahoo.com>

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@
4343
"devDependencies": {
4444
"@stdlib/array-base-zeros": "^0.1.1",
4545
"@stdlib/array-complex64": "^0.1.0",
46-
"@stdlib/array-float64": "^0.1.0",
46+
"@stdlib/array-float64": "^0.1.1",
4747
"@stdlib/assert-is-collection": "^0.1.0",
4848
"@stdlib/bench": "^0.1.0",
49-
"@stdlib/complex-float32": "^0.1.0",
50-
"@stdlib/complex-imagf": "^0.1.0",
51-
"@stdlib/complex-realf": "^0.1.0",
49+
"@stdlib/complex-float32": "^0.1.1",
50+
"@stdlib/complex-imagf": "^0.1.1",
51+
"@stdlib/complex-realf": "^0.1.1",
5252
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5353
"istanbul": "^0.4.1",
5454
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"

test/dist/test.js

Lines changed: 4 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2022 The Stdlib Authors.
4+
* Copyright (c) 2023 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -21,105 +21,13 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var Float64Array = require( '@stdlib/array-float64' );
25-
var Complex64Array = require( '@stdlib/array-complex64' );
26-
var Complex64 = require( '@stdlib/complex-float32' );
27-
var realf = require( '@stdlib/complex-realf' );
28-
var imagf = require( '@stdlib/complex-imagf' );
29-
var arraylike2object = require( './../../dist' );
24+
var main = require( './../../dist' );
3025

3126

3227
// TESTS //
3328

34-
tape( 'main export is a function', function test( t ) {
29+
tape( 'main export is defined', function test( t ) {
3530
t.ok( true, __filename );
36-
t.strictEqual( typeof arraylike2object, 'function', 'main export is a function' );
37-
t.end();
38-
});
39-
40-
tape( 'the function converts an array to a standardized object', function test( t ) {
41-
var expected;
42-
var actual;
43-
var x;
44-
var v;
45-
46-
x = new Float64Array( 10 );
47-
48-
expected = {
49-
'data': x,
50-
'accessorProtocol': false
51-
};
52-
actual = arraylike2object( x );
53-
54-
t.strictEqual( actual.data, expected.data, 'returns expected value' );
55-
t.strictEqual( actual.accessorProtocol, expected.accessorProtocol, 'returns expected value' );
56-
t.strictEqual( typeof actual.accessors[ 0 ], 'function', 'returns expected value' );
57-
t.strictEqual( actual.accessors[ 0 ].length, 2, 'returns expected value' );
58-
t.strictEqual( typeof actual.accessors[ 1 ], 'function', 'returns expected value' );
59-
t.strictEqual( actual.accessors[ 1 ].length, 3, 'returns expected value' );
60-
61-
actual.accessors[ 1 ]( actual.data, 0, 1.0 );
62-
v = actual.accessors[ 0 ]( actual.data, 0 );
63-
t.strictEqual( v, 1.0, 'returns expected value' );
64-
65-
t.end();
66-
});
67-
68-
tape( 'the function converts an array-like object to a standardized object', function test( t ) {
69-
var expected;
70-
var actual;
71-
var x;
72-
var v;
73-
74-
x = {
75-
'length': 10
76-
};
77-
78-
expected = {
79-
'data': x,
80-
'accessorProtocol': false
81-
};
82-
actual = arraylike2object( x );
83-
84-
t.strictEqual( actual.data, expected.data, 'returns expected value' );
85-
t.strictEqual( actual.accessorProtocol, expected.accessorProtocol, 'returns expected value' );
86-
t.strictEqual( typeof actual.accessors[ 0 ], 'function', 'returns expected value' );
87-
t.strictEqual( actual.accessors[ 0 ].length, 2, 'returns expected value' );
88-
t.strictEqual( typeof actual.accessors[ 1 ], 'function', 'returns expected value' );
89-
t.strictEqual( actual.accessors[ 1 ].length, 3, 'returns expected value' );
90-
91-
actual.accessors[ 1 ]( actual.data, 0, 1.0 );
92-
v = actual.accessors[ 0 ]( actual.data, 0 );
93-
t.strictEqual( v, 1.0, 'returns expected value' );
94-
95-
t.end();
96-
});
97-
98-
tape( 'the function converts an array to a standardized object (data buffer accessors)', function test( t ) {
99-
var expected;
100-
var actual;
101-
var x;
102-
var v;
103-
104-
x = new Complex64Array( 10 );
105-
106-
expected = {
107-
'data': x,
108-
'accessorProtocol': true
109-
};
110-
actual = arraylike2object( x );
111-
112-
t.strictEqual( actual.data, expected.data, 'returns expected value' );
113-
t.strictEqual( actual.accessorProtocol, expected.accessorProtocol, 'returns expected value' );
114-
t.strictEqual( typeof actual.accessors[ 0 ], 'function', 'returns expected value' );
115-
t.strictEqual( actual.accessors[ 0 ].length, 2, 'returns expected value' );
116-
t.strictEqual( typeof actual.accessors[ 1 ], 'function', 'returns expected value' );
117-
t.strictEqual( actual.accessors[ 1 ].length, 3, 'returns expected value' );
118-
119-
actual.accessors[ 1 ]( actual.data, 0, new Complex64( 1.0, 2.0 ) );
120-
v = actual.accessors[ 0 ]( actual.data, 0 );
121-
t.strictEqual( realf( v ), 1.0, 'returns expected value' );
122-
t.strictEqual( imagf( v ), 2.0, 'returns expected value' );
123-
31+
t.strictEqual( main !== void 0, true, 'main export is defined' );
12432
t.end();
12533
});

0 commit comments

Comments
 (0)