Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add TypedArray ElementSize, ByteLength and ByteOffset tests #1179

Closed

Conversation

dantehemerson
Copy link
Contributor

@dantehemerson dantehemerson commented May 17, 2022

Mentioned on #964

Add tests for the TypeadArray methods:

  • ElementSize
  • ByteLength
  • ByteOffset

Comment on lines +9 to +17
['int8', Int8Array, 1],
['uint8', Uint8Array, 1],
['uint8_clamped', Uint8ClampedArray, 1],
['int16', Int16Array, 2],
['uint16', Uint16Array, 2],
['int32', Int32Array, 4],
['uint32', Uint32Array, 4],
['float32', Float32Array, 4],
['float64', Float64Array, 8]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dantehemerson dantehemerson changed the title test: Add tests for TypedArray#ElementSize test: Add tests for TypedArray#ElementSize and TypedArray#ByteLength May 17, 2022
@dantehemerson dantehemerson force-pushed the feature/typedarray-element-size branch from 8cbc9fa to f0b9256 Compare May 17, 2022 04:22
@dantehemerson dantehemerson force-pushed the feature/typedarray-element-size branch from e5cc439 to bdc4c59 Compare May 17, 2022 04:37
@dantehemerson dantehemerson changed the title test: Add tests for TypedArray#ElementSize and TypedArray#ByteLength test: Add tests for TypedArray ElementSize, ByteLength and ByteOffset May 17, 2022
@dantehemerson dantehemerson changed the title test: Add tests for TypedArray ElementSize, ByteLength and ByteOffset test: Add TypedArray ElementSize, ByteLength and ByteOffset tests May 17, 2022
Copy link
Contributor

@KevinEady KevinEady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mhdawson pushed a commit that referenced this pull request May 27, 2022
Add tests for TypedArray#ElementSize
Add tests for TypedArray#BufferLength
Add tests for TypedArray#ByteOffset

PR-URL: #1179
Reviewed-By: Kevin Eady <kevin.c.eady@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com
@mhdawson
Copy link
Member

Landed as 63d3c30

@dantehemerson thanks.

@mhdawson mhdawson closed this May 27, 2022
kevindavies8 added a commit to kevindavies8/node-addon-api-Develop that referenced this pull request Aug 24, 2022
Add tests for TypedArray#ElementSize
Add tests for TypedArray#BufferLength
Add tests for TypedArray#ByteOffset

PR-URL: nodejs/node-addon-api#1179
Reviewed-By: Kevin Eady <kevin.c.eady@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com
Marlyfleitas added a commit to Marlyfleitas/node-api-addon-Development that referenced this pull request Aug 26, 2022
Add tests for TypedArray#ElementSize
Add tests for TypedArray#BufferLength
Add tests for TypedArray#ByteOffset

PR-URL: nodejs/node-addon-api#1179
Reviewed-By: Kevin Eady <kevin.c.eady@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com
wroy7860 added a commit to wroy7860/addon-api-benchmark-node that referenced this pull request Sep 19, 2022
Add tests for TypedArray#ElementSize
Add tests for TypedArray#BufferLength
Add tests for TypedArray#ByteOffset

PR-URL: nodejs/node-addon-api#1179
Reviewed-By: Kevin Eady <kevin.c.eady@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com
johnfrench3 pushed a commit to johnfrench3/node-addon-api-git that referenced this pull request Aug 11, 2023
Add tests for TypedArray#ElementSize
Add tests for TypedArray#BufferLength
Add tests for TypedArray#ByteOffset

PR-URL: nodejs/node-addon-api#1179
Reviewed-By: Kevin Eady <kevin.c.eady@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants