Skip to content

Conversation

@ptomato
Copy link
Collaborator

@ptomato ptomato commented Dec 9, 2025

Splits test/thorough/gregorian.mjs into two new test files:

  • calendarisolike.mjs tests that the year and month differences for the four ISO-like calendars are equal to the same differences calculated in the ISO calendar.

  • calendardaymath.mjs tests that week and day differences for all non-ISO calendars (except, temporarily, 'chinese' and 'dangi') are equal to the same differences calculated in the ISO calendar. (Days are always equivalent, and weeks are always 7 days in all currently supported calendars.)

This is in order to test the simplest invariants in other non-ISO calendars and not just 'gregory'.

@ptomato
Copy link
Collaborator Author

ptomato commented Dec 9, 2025

Note: we run into a polyfill bug here that is fixed by #3199, so the CI won't pass until that PR has been merged.

@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.74%. Comparing base (2cee76a) to head (f527f86).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3201   +/-   ##
=======================================
  Coverage   96.74%   96.74%           
=======================================
  Files          22       22           
  Lines       10348    10348           
  Branches     1859     1859           
=======================================
  Hits        10011    10011           
  Misses        287      287           
  Partials       50       50           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Splits test/thorough/gregorian.mjs into two new test files:

- calendarisolike.mjs tests that the year and month differences for the
  four ISO-like calendars are equal to the same differences calculated
  in the ISO calendar.

- calendardaymath.mjs tests that week and day differences for all non-
  ISO calendars (except, temporarily, 'chinese' and 'dangi') are equal
  to the same differences calculated in the ISO calendar. (Days are
  always equivalent, and weeks are always 7 days in all currently
  supported calendars.)

This is in order to test the simplest invariants in other non-ISO
calendars and not just 'gregory'.
@ptomato ptomato force-pushed the iso-like-calendar-tests branch from 2669387 to f527f86 Compare December 9, 2025 21:07
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