@curly-message/conformance 1.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +266 -0
- package/bin/conformance.js +37 -0
- package/bin/manifest.js +24 -0
- package/dist/index.d.ts +225 -0
- package/dist/index.js +4 -0
- package/fixtures/comparisons.json +916 -0
- package/fixtures/conversion.json +231 -0
- package/fixtures/escaping-extensions.json +84 -0
- package/fixtures/escaping.json +546 -0
- package/fixtures/extensions.json +826 -0
- package/fixtures/fallback-intl.json +51 -0
- package/fixtures/fallback.json +774 -0
- package/fixtures/grammar.json +875 -0
- package/fixtures/intl.json +3057 -0
- package/fixtures/limits.json +63 -0
- package/fixtures/nesting.json +251 -0
- package/fixtures/reports.json +512 -0
- package/fixtures/resolution.json +742 -0
- package/fixtures/security-extensions.json +52 -0
- package/fixtures/security.json +246 -0
- package/fixtures/whitespace.json +1000 -0
- package/index.json +102 -0
- package/package.json +76 -0
- package/schema/fixture.schema.json +264 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "curly-message-1",
|
|
3
|
+
"level": "intl",
|
|
4
|
+
"section": "10",
|
|
5
|
+
"cases": [
|
|
6
|
+
{
|
|
7
|
+
"id": "fallback-intl/number-zero-is-present",
|
|
8
|
+
"description": "A value of zero is present, so number formats it and the declared default is never read, as Appendix A.8 expects.",
|
|
9
|
+
"section": "9.2",
|
|
10
|
+
"message": "{{v:number; default:99}}",
|
|
11
|
+
"payload": {
|
|
12
|
+
"v": 0
|
|
13
|
+
},
|
|
14
|
+
"locale": "en",
|
|
15
|
+
"expected": {
|
|
16
|
+
"format": {
|
|
17
|
+
"api": "NumberFormat",
|
|
18
|
+
"options": {
|
|
19
|
+
"maximumFractionDigits": 2
|
|
20
|
+
},
|
|
21
|
+
"input": 0
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "fallback-intl/currency-zero-is-present",
|
|
27
|
+
"description": "A value of zero is present, so currency formats a zero amount and the declared default is never read, as Appendix A.8 expects.",
|
|
28
|
+
"section": "9.2",
|
|
29
|
+
"message": "{{v:currency; default:7}}",
|
|
30
|
+
"payload": {
|
|
31
|
+
"v": 0
|
|
32
|
+
},
|
|
33
|
+
"props": {
|
|
34
|
+
"currency": {
|
|
35
|
+
"currency": "USD"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"locale": "en",
|
|
39
|
+
"expected": {
|
|
40
|
+
"format": {
|
|
41
|
+
"api": "NumberFormat",
|
|
42
|
+
"options": {
|
|
43
|
+
"style": "currency",
|
|
44
|
+
"currency": "USD"
|
|
45
|
+
},
|
|
46
|
+
"input": 0
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|