test262/test/built-ins/Temporal/Instant
Mike Pennisi fd8d520cab Correct test for Temporal.Instant#toString
Prior to this patch, the modified test invoked the `arrayContains`
utility function without referencing its return value. Unlike Test262's
assertion functions, `arrayContains` does not throw an error when the
expectation is violated, so the prior usage did not influence test
results.

Additionally, the prior version of this test documented incorrect
expectations regarding the expected value produced by the method under
test. Due to the above, these expectations were not enforced.

Correct the test's expectations and enforce those expectations with a
function that will reliably produce an exception if violated.
2021-10-29 15:15:57 -04:00
..
compare Add Temporal tests 2021-10-01 14:30:12 -04:00
from Add Temporal tests 2021-10-01 14:30:12 -04:00
fromEpochMicroseconds Add Temporal tests 2021-10-01 14:30:12 -04:00
fromEpochMilliseconds Add Temporal tests 2021-10-01 14:30:12 -04:00
fromEpochNanoseconds Add Temporal tests 2021-10-01 14:30:12 -04:00
fromEpochSeconds Add Temporal tests 2021-10-01 14:30:12 -04:00
prototype Correct test for Temporal.Instant#toString 2021-10-29 15:15:57 -04:00
argument.js Add Temporal tests 2021-10-01 14:30:12 -04:00
basic.js Add Temporal tests 2021-10-01 14:30:12 -04:00
builtin.js Add Temporal tests 2021-10-01 14:30:12 -04:00
constructor.js Add Temporal tests 2021-10-01 14:30:12 -04:00
length.js Add Temporal tests 2021-10-01 14:30:12 -04:00
name.js Add Temporal tests 2021-10-01 14:30:12 -04:00
prop-desc.js Add Temporal tests 2021-10-01 14:30:12 -04:00