Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@cksac
Copy link
Owner

@cksac cksac commented May 20, 2025

Fixes #230

This PR adds a new test file determinism_new.rs that uses a more maintainable approach for testing localization with deterministic tests. The key improvements are:

  1. Added a new l10d variant to the check_determinism macro that makes it easier to test multiple locales at once
  2. Structured the tests to make it easier to add new locales in the future
  3. All tests are passing and maintain the same functionality as the original tests

This approach makes it much easier to add new locales to the tests in the future, as you only need to add a new locale parameter to the l10d macro pattern.

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.

using crabtime to rewrite deterministic tests

3 participants