test262 icon indicating copy to clipboard operation
test262 copied to clipboard

Possible copy by array test coverage gaps

Open trevorade opened this issue 3 months ago • 1 comments

I'm leveraging these unit tests to verify some "copy by array" polyfill implementations.

The tests appear to focus more on corner cases and less so on actual normal expected usage.

Some specific gaps I noticed:

For other tests, the "happy path" is often not explicitly tested. Proper behavior is often verified while testing for different corner cases.


There seems to be a very specific format to the spec comments in the test files and the file naming convention--both of which I'm unfamiliar with--so I'm hesitant to offer to help fill these gaps.

If some guidance were provided on both these points, I'd be happy to help address these gaps.

trevorade avatar Sep 10 '25 17:09 trevorade

Hi, and thanks for volunteering! We always welcome more complete test coverage. Guidance on the specific things you asked about should be in the CONTRIBUTING.md file, particularly:

Note that the spec comment is optional, though certainly preferred if the mechanism being tested is some non-obvious behaviour.

ptomato avatar Sep 10 '25 18:09 ptomato