test: add tests and benchmarks for Boolean prototype methods#12112
Draft
Planeshifter wants to merge 3 commits into
Draft
test: add tests and benchmarks for Boolean prototype methods#12112Planeshifter wants to merge 3 commits into
Boolean prototype methods#12112Planeshifter wants to merge 3 commits into
Conversation
…Boolean.prototype.valueOf` Adds unit tests and benchmarks for the `toString` and `valueOf` prototype methods of the `@stdlib/boolean/ctor` package, following the same conventions as similar typed array packages. Closes #1379 https://claude.ai/code/session_016rDdCHYDzUT1T7YaRAA21G
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
Member
Author
Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1379.
Description
This pull request:
Boolean.prototype.toStringintest/test.to_string.jsBoolean.prototype.valueOfintest/test.value_of.jsBoolean.prototype.toStringinbenchmark/benchmark.to_string.jsBoolean.prototype.valueOfinbenchmark/benchmark.value_of.jsThe
docs/repl.txtalready documents both prototype methods. This PR adds the missing test and benchmark coverage, following the same conventions used in@stdlib/array/booland@stdlib/array/float32.Each test file covers:
hasOwnProp+isFunction)this)trueandfalseBoolean objectsRelated Issues
This pull request has the following related issues:
Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was written primarily by Claude Code.
@stdlib-js/reviewers
Generated by Claude Code