Skip to content

Conversation

@percebus
Copy link
Owner

@percebus percebus commented Oct 4, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Oct 4, 2025

Test Results Deltas

  1 files  ± 0   24 suites  ±0   2s ⏱️ ±0s
294 tests +25  277 ✅ +32  17 💤  - 7  0 ❌ ±0 
300 runs  +25  283 ✅ +32  17 💤  - 7  0 ❌ ±0 

Results for commit fa98e95. ± Comparison against base commit 38fe5b5.

This pull request removes 10 and adds 35 tests. Note that renamed tests count towards both.
Date new Date("0") interprets "0" as the year 2000, not as a timestamp! ‑ Date new Date("0") interprets "0" as the year 2000, not as a timestamp!
Date new Date("1") equals to "2001-01-01T00:00:00.000Z" ‑ Date new Date("1") equals to "2001-01-01T00:00:00.000Z"
Date new Date("12") equals "2001-12-01T00:00:00.000Z" ‑ Date new Date("12") equals "2001-12-01T00:00:00.000Z"
Date new Date("12.-1") ignores the "-", interpreting it like "12.1", resulting in "2001-12-01T00:00:00.000Z" ‑ Date new Date("12.-1") ignores the "-", interpreting it like "12.1", resulting in "2001-12-01T00:00:00.000Z"
Date new Date("12.1") equals "2001-12-01T00:00:00.000Z" ‑ Date new Date("12.1") equals "2001-12-01T00:00:00.000Z"
Date new Date("2") equals "2001-02-01T00:00:00.000Z" ‑ Date new Date("2") equals "2001-02-01T00:00:00.000Z"
Date new Date("maybe 1") parses "maybe" as "may"! resulting in "2001-05-01T00:00:00.000Z" ‑ Date new Date("maybe 1") parses "maybe" as "may"! resulting in "2001-05-01T00:00:00.000Z"
Date new Date("perhaps 1") ignores leading text. Finding "1" and parsing it as January. Resulting in "2001-01-01T00:00:00.000Z" ‑ Date new Date("perhaps 1") ignores leading text. Finding "1" and parsing it as January. Resulting in "2001-01-01T00:00:00.000Z"
undefined Number isNaN ‑ undefined Number isNaN
undefined is typeof 'undefined ‑ undefined is typeof 'undefined
Date new Date("(1990) 2010") does NOT equal "1990-01-01T00:00:00.000Z" ‑ Date new Date("(1990) 2010") does NOT equal "1990-01-01T00:00:00.000Z"
Date new Date("(1990) 2010") does NOT equal "2000-01-01T00:00:00.000Z" ‑ Date new Date("(1990) 2010") does NOT equal "2000-01-01T00:00:00.000Z"
Date new Date("(1990) 2010") ignores text in parentheses, parsing this as "2010", resulting in "2010-01-01T00:00:00.000" ‑ Date new Date("(1990) 2010") ignores text in parentheses, parsing this as "2010", resulting in "2010-01-01T00:00:00.000"
Date new Date("0") interprets "0" as the year 2000, not as a timestamp! parsing it as "2000-01-01T06:00:00.000" ‑ Date new Date("0") interprets "0" as the year 2000, not as a timestamp! parsing it as "2000-01-01T06:00:00.000"
Date new Date("1") equals to "2001-01-01T00:00:00.000" ‑ Date new Date("1") equals to "2001-01-01T00:00:00.000"
Date new Date("12") equals "2001-12-01T00:00:00.000" ‑ Date new Date("12") equals "2001-12-01T00:00:00.000"
Date new Date("12.-1") ignores the "-", interpreting it like "12.1", resulting in "2001-12-01T00:00:00.000" ‑ Date new Date("12.-1") ignores the "-", interpreting it like "12.1", resulting in "2001-12-01T00:00:00.000"
Date new Date("12.1") equals "2001-12-01T00:00:00.000" ‑ Date new Date("12.1") equals "2001-12-01T00:00:00.000"
Date new Date("1990 (2010)") does NOT equal "2000-01-01T00:00:00.000Z" ‑ Date new Date("1990 (2010)") does NOT equal "2000-01-01T00:00:00.000Z"
Date new Date("1990 (2010)") does NOT equal "2010-01-01T00:00:00.000Z" ‑ Date new Date("1990 (2010)") does NOT equal "2010-01-01T00:00:00.000Z"
…
This pull request removes 8 skipped tests and adds 1 skipped test. Note that renamed tests count towards both.
Date new Date("0") interprets "0" as the year 2000, not as a timestamp! ‑ Date new Date("0") interprets "0" as the year 2000, not as a timestamp!
Date new Date("1") equals to "2001-01-01T00:00:00.000Z" ‑ Date new Date("1") equals to "2001-01-01T00:00:00.000Z"
Date new Date("12") equals "2001-12-01T00:00:00.000Z" ‑ Date new Date("12") equals "2001-12-01T00:00:00.000Z"
Date new Date("12.-1") ignores the "-", interpreting it like "12.1", resulting in "2001-12-01T00:00:00.000Z" ‑ Date new Date("12.-1") ignores the "-", interpreting it like "12.1", resulting in "2001-12-01T00:00:00.000Z"
Date new Date("12.1") equals "2001-12-01T00:00:00.000Z" ‑ Date new Date("12.1") equals "2001-12-01T00:00:00.000Z"
Date new Date("2") equals "2001-02-01T00:00:00.000Z" ‑ Date new Date("2") equals "2001-02-01T00:00:00.000Z"
Date new Date("maybe 1") parses "maybe" as "may"! resulting in "2001-05-01T00:00:00.000Z" ‑ Date new Date("maybe 1") parses "maybe" as "may"! resulting in "2001-05-01T00:00:00.000Z"
Date new Date("perhaps 1") ignores leading text. Finding "1" and parsing it as January. Resulting in "2001-01-01T00:00:00.000Z" ‑ Date new Date("perhaps 1") ignores leading text. Finding "1" and parsing it as January. Resulting in "2001-01-01T00:00:00.000Z"
Date new Date("fourth of may 2010") does NOT equal "2010-05-01T00:00:00.000Z" ‑ Date new Date("fourth of may 2010") does NOT equal "2010-05-01T00:00:00.000Z"

♻️ This comment has been updated with latest results.

@percebus percebus marked this pull request as ready for review October 4, 2025 16:03
@percebus percebus merged commit 658beeb into main Oct 4, 2025
9 checks passed
@percebus percebus deleted the test/Date/pt3 branch October 4, 2025 16:04
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.

2 participants