Skip to content

Commit e554c0b

Browse files
committed
Auto-generated commit
1 parent cf4a24c commit e554c0b

File tree

9 files changed

+40
-14
lines changed

9 files changed

+40
-14
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
### Features
1212

13+
- [`8e7dc95`](https://github.com/stdlib-js/stdlib/commit/8e7dc9562192062ab1e016d45ba32b9c3592fe97) - add support for non-string data types
14+
- [`70dda4f`](https://github.com/stdlib-js/stdlib/commit/70dda4f47b6613531ee298231ea60630174f3dcc) - add support for non-string data types
1315
- [`06bd6e0`](https://github.com/stdlib-js/stdlib/commit/06bd6e03ba8aae02b35f9a4da6724d686cf34da4) - add support for non-string data types
1416
- [`be5553d`](https://github.com/stdlib-js/stdlib/commit/be5553d64471b61353e42499666ab50502ab136b) - add support for non-string data types
1517
- [`1908bae`](https://github.com/stdlib-js/stdlib/commit/1908bae6fe4852798ed12f620b59af50f762f2e5) - add support for `struct` and `DataType` dtype values
@@ -560,6 +562,11 @@ A total of 24 issues were closed in this release:
560562

561563
<details>
562564

565+
- [`8e7dc95`](https://github.com/stdlib-js/stdlib/commit/8e7dc9562192062ab1e016d45ba32b9c3592fe97) - **feat:** add support for non-string data types _(by Athan Reines)_
566+
- [`bdd0013`](https://github.com/stdlib-js/stdlib/commit/bdd0013af7bb684e818bedaf287389165858105b) - **docs:** update JSDoc _(by Athan Reines)_
567+
- [`374953a`](https://github.com/stdlib-js/stdlib/commit/374953a8333a7467c5c8df1e1fc8d6763c4f33aa) - **docs:** update JSDoc _(by Athan Reines)_
568+
- [`f2d7632`](https://github.com/stdlib-js/stdlib/commit/f2d76323bdd92003f5b1f8457d884f589ef76bd5) - **docs:** update JSDoc _(by Athan Reines)_
569+
- [`70dda4f`](https://github.com/stdlib-js/stdlib/commit/70dda4f47b6613531ee298231ea60630174f3dcc) - **feat:** add support for non-string data types _(by Athan Reines)_
563570
- [`06bd6e0`](https://github.com/stdlib-js/stdlib/commit/06bd6e03ba8aae02b35f9a4da6724d686cf34da4) - **feat:** add support for non-string data types _(by Athan Reines)_
564571
- [`be5553d`](https://github.com/stdlib-js/stdlib/commit/be5553d64471b61353e42499666ab50502ab136b) - **feat:** add support for non-string data types _(by Athan Reines)_
565572
- [`3cb98f3`](https://github.com/stdlib-js/stdlib/commit/3cb98f3aa714b97cb714d45688421e9ac416d31c) - **test:** add tests for full branch coverage _(by Athan Reines)_

base/assert/is-boolean-data-type/lib/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ var isDataType = contains( dtypes( 'boolean' ) );
3434
/**
3535
* Tests whether an input value is a supported ndarray boolean data type.
3636
*
37-
* @name isBooleanDataType
38-
* @type {Function}
3937
* @param {*} v - value to test
4038
* @returns {boolean} boolean indicating whether an input value is a supported ndarray boolean data type
4139
*

base/assert/is-boolean-index-data-type/lib/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ var isDataType = contains( dtypes( 'boolean_index' ) );
3434
/**
3535
* Tests whether an input value is a supported ndarray boolean index data type.
3636
*
37-
* @name isBooleanIndexDataType
38-
* @type {Function}
3937
* @param {*} v - value to test
4038
* @returns {boolean} boolean indicating whether an input value is a supported ndarray boolean index data type
4139
*

base/assert/is-complex-floating-point-data-type/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var isComplexFloatingPointDataType = require( '@stdlib/ndarray/base/assert/is-co
4444

4545
#### isComplexFloatingPointDataType( value )
4646

47-
Tests if an input `value` is a supported ndarray complex-valued floating-point data type.
47+
Tests if an input value is a supported ndarray complex-valued floating-point data type.
4848

4949
<!-- eslint-disable id-length -->
5050

base/assert/is-complex-floating-point-data-type/lib/main.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var dtypes = require( './../../../../dtypes' );
2525

2626

27+
// VARIABLES //
28+
29+
var isDataType = contains( dtypes( 'complex_floating_point' ) );
30+
31+
2732
// MAIN //
2833

2934
/**
3035
* Tests whether an input value is a supported ndarray complex-valued floating-point data type.
3136
*
32-
* @name isComplexFloatingPointDataType
33-
* @type {Function}
3437
* @param {*} v - value to test
3538
* @returns {boolean} boolean indicating whether an input value is a supported ndarray complex-valued floating-point data type
3639
*
@@ -77,7 +80,9 @@ var dtypes = require( './../../../../dtypes' );
7780
* bool = isComplexFloatingPointDataType( 'foo' );
7881
* // returns false
7982
*/
80-
var isComplexFloatingPointDataType = contains( dtypes( 'complex_floating_point' ) ); // eslint-disable-line id-length
83+
function isComplexFloatingPointDataType( v ) { // eslint-disable-line id-length
84+
return isDataType( String( v ) );
85+
}
8186

8287

8388
// EXPORTS //

base/assert/is-complex-floating-point-data-type/test/test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24+
var DataType = require( './../../../../dtype-ctor' );
2425
var isComplexFloatingPointDataType = require( './../lib' ); // eslint-disable-line id-length
2526

2627

@@ -39,7 +40,9 @@ tape( 'the function returns `true` if provided a supported ndarray complex-value
3940

4041
values = [
4142
'complex64',
42-
'complex128'
43+
'complex128',
44+
new DataType( 'complex64' ),
45+
new DataType( 'complex128' )
4346
];
4447
for ( i = 0; i < values.length; i++ ) {
4548
bool = isComplexFloatingPointDataType( values[ i ] );
@@ -67,6 +70,8 @@ tape( 'the function returns `false` if not provided a supported ndarray complex-
6770
'int8',
6871
'generic',
6972

73+
new DataType( 'generic' ),
74+
7075
// Unsupported dtypes:
7176
'float',
7277
'int',

base/assert/is-floating-point-data-type/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ var isFloatingPointDataType = require( '@stdlib/ndarray/base/assert/is-floating-
4242

4343
#### isFloatingPointDataType( value )
4444

45-
Tests if an input `value` is a supported ndarray floating-point data type.
45+
Tests if an input value is a supported ndarray floating-point data type.
4646

4747
```javascript
4848
var bool = isFloatingPointDataType( 'float32' );

base/assert/is-floating-point-data-type/lib/main.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2424
var dtypes = require( './../../../../dtypes' );
2525

2626

27+
// VARIABLES //
28+
29+
var isDataType = contains( dtypes( 'floating_point' ) );
30+
31+
2732
// MAIN //
2833

2934
/**
3035
* Tests whether an input value is a supported ndarray floating-point data type.
3136
*
32-
* @name isFloatingPointDataType
33-
* @type {Function}
3437
* @param {*} v - value to test
3538
* @returns {boolean} boolean indicating whether an input value is a supported ndarray floating-point data type
3639
*
@@ -71,7 +74,9 @@ var dtypes = require( './../../../../dtypes' );
7174
* bool = isFloatingPointDataType( 'foo' );
7275
* // returns false
7376
*/
74-
var isFloatingPointDataType = contains( dtypes( 'floating_point' ) );
77+
function isFloatingPointDataType( v ) {
78+
return isDataType( String( v ) );
79+
}
7580

7681

7782
// EXPORTS //

base/assert/is-floating-point-data-type/test/test.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24+
var DataType = require( './../../../../dtype-ctor' );
2425
var isFloatingPointDataType = require( './../lib' );
2526

2627

@@ -41,7 +42,12 @@ tape( 'the function returns `true` if provided a supported ndarray floating-poin
4142
'complex64',
4243
'complex128',
4344
'float32',
44-
'float64'
45+
'float64',
46+
47+
new DataType( 'complex64' ),
48+
new DataType( 'complex128' ),
49+
new DataType( 'float32' ),
50+
new DataType( 'float64' )
4551
];
4652
for ( i = 0; i < values.length; i++ ) {
4753
bool = isFloatingPointDataType( values[ i ] );
@@ -67,6 +73,8 @@ tape( 'the function returns `false` if not provided a supported ndarray floating
6773
'int8',
6874
'generic',
6975

76+
new DataType( 'generic' ),
77+
7078
// Unsupported dtypes:
7179
'float',
7280
'int',

0 commit comments

Comments
 (0)