-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"default locale" tests -> "en" tests (depends on "en" being installed…
…, but doesn't depend on it being system default). "de" locale test now handles locales that would have been similar enough to "de" to cause a failure. Add a "default" locale test that just sanity checks A!=B.
- Loading branch information
Showing
10 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...llator/accent-lt-default-locale/test.json → ...ion-tests/collator/accent-lt-en/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ccent-not-equals-default-locale/test.json → ...s/collator/accent-not-equals-en/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
test/integration/expression-tests/collator/base-default-locale/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"expression": ["==", ["string",["get", "lhs"]], ["get", "rhs"], ["collator", false, false]], | ||
"inputs": [ | ||
[{}, {"properties": {"lhs": "a", "rhs": "a"}}], | ||
[{}, {"properties": {"lhs": "A", "rhs": "A"}}], | ||
[{}, {"properties": {"lhs": "b", "rhs": "a"}}] | ||
], | ||
"expected": { | ||
"compiled": { | ||
"result": "success", | ||
"isFeatureConstant": false, | ||
"isZoomConstant": true, | ||
"type": "boolean" | ||
}, | ||
"outputs": [true, true, false], | ||
"serialized": "string" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ator/base-equals-default-locale/test.json → ...n-tests/collator/base-equals-en/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...collator/base-gt-default-locale/test.json → ...ssion-tests/collator/base-gt-en/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...llator/case-lteq-default-locale/test.json → ...ion-tests/collator/case-lteq-en/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../case-not-equals-default-locale/test.json → ...sts/collator/case-not-equals-en/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...r/variant-equals-default-locale/test.json → ...ests/collator/variant-equals-en/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tor/variant-gteq-default-locale/test.json → ...-tests/collator/variant-gteq-en/test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters