Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor: optimize code and improve test coverage #14

Merged
merged 3 commits into from
Jan 13, 2025
Merged

Conversation

flexiondotorg
Copy link
Contributor

No description provided.

Core Changes:
- Replace multiple assignment with individual assignments for module exports
- Remove unreachable locale handling code in defaultPluralizeFunction
- Simplify unescapePercentages function logic

Test Improvements:
- Add edge case tests for string interpolation
- Add locale fallback and table locale tests
- Add error handling tests for invalid inputs
- Add LÖVE filesystem error path tests
- Add pluralization tests with mixed data
- Add validation tests for locale settings

Coverage increases to 99.8% across all Lua versions.
@flexiondotorg flexiondotorg merged commit c4be6fe into master Jan 13, 2025
5 checks passed
@flexiondotorg flexiondotorg deleted the test branch January 13, 2025 14:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant