Skip to content

Conversation

@rubensdemelo
Copy link
Collaborator

This commit enhances the test suite by adding a new set of tests that cover DateTime instances with single-digit values for day, month, hour, minute, and second.

A new DateTime object, DateTime(2024, 1, 5, 8, 9, 4), was introduced to validate the formatting logic for these specific edge cases, ensuring that padding and formatting are handled correctly.

The new tests are organized within a separate group in test/brasil_datetime_test.dart to maintain clarity and structure. All existing and new tests pass, confirming that no regressions have been introduced.

This commit enhances the test suite by adding a new set of tests that cover `DateTime` instances with single-digit values for day, month, hour, minute, and second.

A new `DateTime` object, `DateTime(2024, 1, 5, 8, 9, 4)`, was introduced to validate the formatting logic for these specific edge cases, ensuring that padding and formatting are handled correctly.

The new tests are organized within a separate `group` in `test/brasil_datetime_test.dart` to maintain clarity and structure. All existing and new tests pass, confirming that no regressions have been introduced.
@rubensdemelo rubensdemelo merged commit bd5b7a0 into main Oct 5, 2025
2 checks passed
@rubensdemelo rubensdemelo deleted the test/improve-test-coverage branch October 5, 2025 10:25
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