示例
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
案例
- 目标
- Format dates in a non-English locale with intl, and parse a date without silently accepting an invalid one HOW
- 包
- intl 0.20.2
- 环境
- dart 3
- 创建时间
- 2026-08-14T06:07:43Z
契约
- 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
文件
- csx.json
- lib/dates.dart
- pubspec.lock
- pubspec.yaml
- test/contract_test.dart
原始种子者
验证回执
- 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