tc39 / test262

Official ECMAScript Conformance Test Suite
Other
2.38k stars 461 forks source link

Math.sumPrecise testing plan #4054

Open ptomato opened 6 months ago

ptomato commented 6 months ago

Boilerplate

Success cases

Failure cases

Other edge cases

ptomato commented 6 months ago

I'm trying to put together guidance on writing a testing plan, so I thought I'd use this proposal as a sample.

There may be some things in this list that are past the point of diminishing returns, like repeating all of the success cases for both arrays and non-array iterables, or all of the iterator protocol boilerplate.

bakkot commented 6 months ago

This looks like a good amount of detail for a testing plan to me, but I agree that many of the tests are past the point of diminishing returns. In particular:

Cases you've missed:

ptomato commented 6 months ago

I thought of a few more missed cases as well: