@stdlib/assert-is-same-complex64 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,7 +33,7 @@ limitations under the License.
33
33
 
34
34
  [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
35
35
 
36
- > Test if two arguments are both [single-precision complex floating-point numbers][@stdlib/complex/float32] and have the [same value][@stdlib/assert/is-same-value].
36
+ > Test if two arguments are both [single-precision complex floating-point numbers][@stdlib/complex/float32/ctor] and have the [same value][@stdlib/assert/is-same-value].
37
37
 
38
38
  <section class="installation">
39
39
 
@@ -55,10 +55,10 @@ var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );
55
55
 
56
56
  #### isSameComplex64( v1, v2 )
57
57
 
58
- Tests if two arguments are both [single-precision complex floating-point numbers][@stdlib/complex/float32] and have the [same value][@stdlib/assert/is-same-value].
58
+ Tests if two arguments are both [single-precision complex floating-point numbers][@stdlib/complex/float32/ctor] and have the [same value][@stdlib/assert/is-same-value].
59
59
 
60
60
  ```javascript
61
- var Complex64 = require( '@stdlib/complex-float32' );
61
+ var Complex64 = require( '@stdlib/complex-float32-ctor' );
62
62
 
63
63
  var x = new Complex64( 1.0, 2.0 );
64
64
  var y = new Complex64( 1.0, 2.0 );
@@ -87,7 +87,7 @@ var bool = isSameComplex64( x, y );
87
87
  <!-- eslint no-undef: "error" -->
88
88
 
89
89
  ```javascript
90
- var Complex64 = require( '@stdlib/complex-float32' );
90
+ var Complex64 = require( '@stdlib/complex-float32-ctor' );
91
91
  var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );
92
92
 
93
93
  var x = new Complex64( 1.0, 2.0 );
@@ -165,8 +165,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
165
165
  [npm-image]: http://img.shields.io/npm/v/@stdlib/assert-is-same-complex64.svg
166
166
  [npm-url]: https://npmjs.org/package/@stdlib/assert-is-same-complex64
167
167
 
168
- [test-image]: https://github.com/stdlib-js/assert-is-same-complex64/actions/workflows/test.yml/badge.svg?branch=v0.2.0
169
- [test-url]: https://github.com/stdlib-js/assert-is-same-complex64/actions/workflows/test.yml?query=branch:v0.2.0
168
+ [test-image]: https://github.com/stdlib-js/assert-is-same-complex64/actions/workflows/test.yml/badge.svg?branch=v0.2.2
169
+ [test-url]: https://github.com/stdlib-js/assert-is-same-complex64/actions/workflows/test.yml?query=branch:v0.2.2
170
170
 
171
171
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-is-same-complex64/main.svg
172
172
  [coverage-url]: https://codecov.io/github/stdlib-js/assert-is-same-complex64?branch=main
@@ -198,7 +198,7 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
198
198
 
199
199
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/assert-is-same-complex64/main/LICENSE
200
200
 
201
- [@stdlib/complex/float32]: https://www.npmjs.com/package/@stdlib/complex-float32
201
+ [@stdlib/complex/float32/ctor]: https://www.npmjs.com/package/@stdlib/complex-float32-ctor
202
202
 
203
203
  [@stdlib/assert/is-same-value]: https://www.npmjs.com/package/@stdlib/assert-is-same-value
204
204
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";var u=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var t=u(function(f,s){
2
- var i=require('@stdlib/assert-is-complex64/dist'),a=require('@stdlib/complex-base-assert-is-same-valuef/dist');function m(r,e){return i(r)&&i(e)?a(r,e):!1}s.exports=m
2
+ var i=require('@stdlib/assert-is-complex64/dist'),a=require('@stdlib/complex-float32-base-assert-is-same-value/dist');function m(r,e){return i(r)&&i(e)?a(r,e):!1}s.exports=m
3
3
  });var n=t();module.exports=n;
4
4
  /** @license Apache-2.0 */
5
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../lib/main.js", "../lib/index.js"],
4
- "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar isComplex64 = require( '@stdlib/assert-is-complex64' );\nvar isSameValuef = require( '@stdlib/complex-base-assert-is-same-valuef' );\n\n\n// MAIN //\n\n/**\n* Tests if two arguments are both single-precision complex floating-point numbers and have the same value.\n*\n* @param {*} v1 - first value\n* @param {*} v2 - second value\n* @returns {boolean} boolean result\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( 1.0, 2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns true\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( -1.0, -2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns false\n*/\nfunction isSameComplex64( v1, v2 ) {\n\tif ( isComplex64( v1 ) && isComplex64( v2 ) ) {\n\t\treturn isSameValuef( v1, v2 );\n\t}\n\treturn false;\n}\n\n\n// EXPORTS //\n\nmodule.exports = isSameComplex64;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Test if two arguments are both single-precision complex floating-point numbers and have the same value.\n*\n* @module @stdlib/assert-is-same-complex64\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32' );\n* var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( 1.0, 2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns true\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32' );\n* var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( -1.0, -2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns false\n*/\n\n// MODULES //\n\nvar main = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"],
5
- "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAc,QAAS,6BAA8B,EACrDC,EAAe,QAAS,4CAA6C,EA8BzE,SAASC,EAAiBC,EAAIC,EAAK,CAClC,OAAKJ,EAAaG,CAAG,GAAKH,EAAaI,CAAG,EAClCH,EAAcE,EAAIC,CAAG,EAEtB,EACR,CAKAL,EAAO,QAAUG,ICfjB,IAAIG,EAAO,IAKX,OAAO,QAAUA",
4
+ "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar isComplex64 = require( '@stdlib/assert-is-complex64' );\nvar isSameValuef = require( '@stdlib/complex-float32-base-assert-is-same-value' );\n\n\n// MAIN //\n\n/**\n* Tests if two arguments are both single-precision complex floating-point numbers and have the same value.\n*\n* @param {*} v1 - first value\n* @param {*} v2 - second value\n* @returns {boolean} boolean result\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( 1.0, 2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns true\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( -1.0, -2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns false\n*/\nfunction isSameComplex64( v1, v2 ) {\n\tif ( isComplex64( v1 ) && isComplex64( v2 ) ) {\n\t\treturn isSameValuef( v1, v2 );\n\t}\n\treturn false;\n}\n\n\n// EXPORTS //\n\nmodule.exports = isSameComplex64;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2024 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Test if two arguments are both single-precision complex floating-point numbers and have the same value.\n*\n* @module @stdlib/assert-is-same-complex64\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n* var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( 1.0, 2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns true\n*\n* @example\n* var Complex64 = require( '@stdlib/complex-float32-ctor' );\n* var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );\n*\n* var x = new Complex64( 1.0, 2.0 );\n* var y = new Complex64( -1.0, -2.0 );\n*\n* var out = isSameComplex64( x, y );\n* // returns false\n*/\n\n// MODULES //\n\nvar main = require( './main.js' );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"],
5
+ "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAc,QAAS,6BAA8B,EACrDC,EAAe,QAAS,mDAAoD,EA8BhF,SAASC,EAAiBC,EAAIC,EAAK,CAClC,OAAKJ,EAAaG,CAAG,GAAKH,EAAaI,CAAG,EAClCH,EAAcE,EAAIC,CAAG,EAEtB,EACR,CAKAL,EAAO,QAAUG,ICfjB,IAAIG,EAAO,IAKX,OAAO,QAAUA",
6
6
  "names": ["require_main", "__commonJSMin", "exports", "module", "isComplex64", "isSameValuef", "isSameComplex64", "v1", "v2", "main"]
7
7
  }
@@ -30,7 +30,7 @@
30
30
  * @returns boolean indicating whether two arguments are the same
31
31
  *
32
32
  * @example
33
- * var Complex64 = require( '@stdlib/complex-float32' );
33
+ * var Complex64 = require( '@stdlib/complex-float32-ctor' );
34
34
  *
35
35
  * var x = new Complex64( 1.0, 2.0 );
36
36
  * var y = new Complex64( 1.0, 2.0 );
@@ -39,7 +39,7 @@
39
39
  * // returns true
40
40
  *
41
41
  * @example
42
- * var Complex64 = require( '@stdlib/complex-float32' );
42
+ * var Complex64 = require( '@stdlib/complex-float32-ctor' );
43
43
  *
44
44
  * var x = new Complex64( 1.0, 2.0 );
45
45
  * var y = new Complex64( -1.0, -2.0 );
package/lib/index.js CHANGED
@@ -24,7 +24,7 @@
24
24
  * @module @stdlib/assert-is-same-complex64
25
25
  *
26
26
  * @example
27
- * var Complex64 = require( '@stdlib/complex-float32' );
27
+ * var Complex64 = require( '@stdlib/complex-float32-ctor' );
28
28
  * var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );
29
29
  *
30
30
  * var x = new Complex64( 1.0, 2.0 );
@@ -34,7 +34,7 @@
34
34
  * // returns true
35
35
  *
36
36
  * @example
37
- * var Complex64 = require( '@stdlib/complex-float32' );
37
+ * var Complex64 = require( '@stdlib/complex-float32-ctor' );
38
38
  * var isSameComplex64 = require( '@stdlib/assert-is-same-complex64' );
39
39
  *
40
40
  * var x = new Complex64( 1.0, 2.0 );
package/lib/main.js CHANGED
@@ -21,7 +21,7 @@
21
21
  // MODULES //
22
22
 
23
23
  var isComplex64 = require( '@stdlib/assert-is-complex64' );
24
- var isSameValuef = require( '@stdlib/complex-base-assert-is-same-valuef' );
24
+ var isSameValuef = require( '@stdlib/complex-float32-base-assert-is-same-value' );
25
25
 
26
26
 
27
27
  // MAIN //
@@ -34,7 +34,7 @@ var isSameValuef = require( '@stdlib/complex-base-assert-is-same-valuef' );
34
34
  * @returns {boolean} boolean result
35
35
  *
36
36
  * @example
37
- * var Complex64 = require( '@stdlib/complex-float32' );
37
+ * var Complex64 = require( '@stdlib/complex-float32-ctor' );
38
38
  *
39
39
  * var x = new Complex64( 1.0, 2.0 );
40
40
  * var y = new Complex64( 1.0, 2.0 );
@@ -43,7 +43,7 @@ var isSameValuef = require( '@stdlib/complex-base-assert-is-same-valuef' );
43
43
  * // returns true
44
44
  *
45
45
  * @example
46
- * var Complex64 = require( '@stdlib/complex-float32' );
46
+ * var Complex64 = require( '@stdlib/complex-float32-ctor' );
47
47
  *
48
48
  * var x = new Complex64( 1.0, 2.0 );
49
49
  * var y = new Complex64( -1.0, -2.0 );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/assert-is-same-complex64",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Test if two arguments are both single-precision complex floating-point numbers and have the same value.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -15,19 +15,12 @@
15
15
  ],
16
16
  "main": "./lib",
17
17
  "directories": {
18
- "benchmark": "./benchmark",
19
18
  "doc": "./docs",
20
- "example": "./examples",
21
19
  "lib": "./lib",
22
- "test": "./test"
20
+ "dist": "./dist"
23
21
  },
24
22
  "types": "./docs/types",
25
- "scripts": {
26
- "test": "make test",
27
- "test-cov": "make test-cov",
28
- "examples": "make examples",
29
- "benchmark": "make benchmark"
30
- },
23
+ "scripts": {},
31
24
  "homepage": "https://stdlib.io",
32
25
  "repository": {
33
26
  "type": "git",
@@ -37,18 +30,10 @@
37
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
31
  },
39
32
  "dependencies": {
40
- "@stdlib/assert-is-complex64": "^0.2.0",
41
- "@stdlib/complex-base-assert-is-same-valuef": "^0.1.0"
42
- },
43
- "devDependencies": {
44
- "@stdlib/assert-is-boolean": "^0.1.1",
45
- "@stdlib/complex-float32": "^0.1.1",
46
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
47
- "istanbul": "^0.4.1",
48
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
49
- "@stdlib/bench-harness": "^0.2.0",
50
- "@stdlib/bench": "^0.3.1"
33
+ "@stdlib/assert-is-complex64": "^0.2.2",
34
+ "@stdlib/complex-float32-base-assert-is-same-value": "^0.1.0"
51
35
  },
36
+ "devDependencies": {},
52
37
  "engines": {
53
38
  "node": ">=0.10.0",
54
39
  "npm": ">2.7.0"