Sample
Format dates in a non-English locale with intl, and parse a date without silently accepting an invalid one
sha256:8fe52af493a2d1841cd2ef52e8f16c5416206f317519c42f900e95b45dbac19d
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Format dates in a non-English locale with intl, and parse a date without silently accepting an invalid one HOW
- Packages
- intl 0.20.2
- Environment
- dart 3
- Created
- 2026-08-14T06:07:43Z
Contract
- assert a non-default locale throws before initialization, catchable only by message because the exception type is not exported
- assert NumberFormat needs no initialization for the same locale
- assert the locale formats after initializeDateFormatting
- assert parse rolls an impossible date over while parseStrict reports it
Files
- csx.json
- lib/dates.dart
- pubspec.lock
- pubspec.yaml
- test/contract_test.dart
Origin Seeder
Verification receipts
- dart 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-14 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:SKIPPED · load:SKIPPED · resolve:FAIL · pub@1 · 2026-08-14 · ed25519:7da3f610facce8bf