Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new test schema #767

Merged
merged 25 commits into from
Apr 29, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5195793
Add new test schema
mradbourne Apr 12, 2024
21e7ee2
Remove ordinal and plural tests as per https://github.com/unicode-org…
mradbourne Apr 15, 2024
677590c
Improve data-model-errors description
mradbourne Apr 15, 2024
6a7214f
Make `scenario` property optional
mradbourne Apr 15, 2024
f5fa711
Schema refactor and typo fix
mradbourne Apr 15, 2024
92c06e3
Minor schema refactors
mradbourne Apr 15, 2024
3a5136b
Remove redundant `type` properties from params
mradbourne Apr 15, 2024
ba74af9
Version test schema
mradbourne Apr 16, 2024
f406915
Rename core to syntax
mradbourne Apr 16, 2024
7c4353e
Add array types to `src` and `expCleanSrc` for readability
mradbourne Apr 16, 2024
ff5f34c
Add formatted-parts schema
mradbourne Apr 17, 2024
d97a41f
Simplify expParts
mradbourne Apr 19, 2024
5481531
Make `name` property required in `var`
mradbourne Apr 19, 2024
8e816db
Fix indentation
mradbourne Apr 19, 2024
0727525
Update README and description
mradbourne Apr 19, 2024
b9fb07b
Update error types
mradbourne Apr 22, 2024
e5f4058
Remove testType property
mradbourne Apr 22, 2024
1242ac7
Allow additional properties in message expression part
mradbourne Apr 22, 2024
8481e37
Remove array version of `src`
mradbourne Apr 23, 2024
3ca3ff6
Disallow presence of both `parts` and `value` in expression part
mradbourne Apr 23, 2024
1ba5f56
Change literal from number to string in test
mradbourne Apr 23, 2024
1ddd4ee
Add missing additionalProperties:false
mradbourne Apr 23, 2024
1c6032c
Change incorrect string literal part to integer expression
mradbourne Apr 23, 2024
d901660
Simplify schema versioning
mradbourne Apr 29, 2024
4fc58e8
Remove outdated description
mradbourne Apr 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove testType property
  • Loading branch information
mradbourne committed Apr 22, 2024
commit e5f4058222fc9f435968162bd72b814e26568996
38 changes: 0 additions & 38 deletions test/schemas/v0-0-1/tests.schema.json
Original file line number Diff line number Diff line change
@@ -30,31 +30,6 @@
},
"$comment": "This allOf specifies required test properties that allow a default. A value will be required in 'defaultTestProperties' if one is not provided for every individual test.",
"allOf": [
{
"anyOf": [
{
"properties": {
"defaultTestProperties": {
"required": [
"testType"
]
}
}
},
{
"properties": {
"tests": {
"type": "array",
"items": {
"required": [
"testType"
]
}
}
}
}
]
},
{
"anyOf": [
{
@@ -133,9 +108,6 @@
"type": "object",
"additionalProperties": false,
"properties": {
"testType": {
"$ref": "#/$defs/testType"
},
"locale": {
"$ref": "#/$defs/locale"
},
@@ -167,9 +139,6 @@
"type": "string",
"description": "Information about the test."
},
"testType": {
"$ref": "#/$defs/testType"
},
"locale": {
"$ref": "#/$defs/locale"
},
@@ -197,13 +166,6 @@
}
}
},
"testType": {
"description": "The category of test.",
"enum": [
"syntax",
"function"
]
},
"locale": {
"description": "The locale to use for formatting.",
"type": "string"
1 change: 0 additions & 1 deletion test/tests/data-model-errors.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
"scenario": "Data model errors",
"description": "Each `src` should produce an error when processed. Each test description indicates the error reason, but this text should not be asserted against. Error names are defined in the spec.",
"defaultTestProperties": {
"testType": "syntax",
"locale": "en-US"
},
"tests": [
1 change: 0 additions & 1 deletion test/tests/functions/date.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
"scenario": "Date function",
"description": "The built-in formatter for dates.",
"defaultTestProperties": {
"testType": "function",
"locale": "en-US",
"expErrors": false
},
1 change: 0 additions & 1 deletion test/tests/functions/datetime.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
"scenario": "Datetime function",
"description": "The built-in formatter for datetimes.",
"defaultTestProperties": {
"testType": "function",
"locale": "en-US",
"expErrors": false
},
1 change: 0 additions & 1 deletion test/tests/functions/integer.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
"scenario": "Integer function",
"description": "The built-in formatter for integers.",
"defaultTestProperties": {
"testType": "function",
"locale": "en-US"
},
"tests": [
1 change: 0 additions & 1 deletion test/tests/functions/number.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
"scenario": "Number function",
"description": "The built-in formatter for numbers.",
"defaultTestProperties": {
"testType": "function",
"locale": "en-US"
},
"tests": [
1 change: 0 additions & 1 deletion test/tests/functions/string.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
"scenario": "String function",
"description": "The built-in formatter for strings.",
"defaultTestProperties": {
"testType": "function",
"locale": "en-US"
},
"tests": [
1 change: 0 additions & 1 deletion test/tests/functions/time.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
"scenario": "Time function",
"description": "The built-in formatter for times.",
"defaultTestProperties": {
"testType": "function",
"locale": "en-US",
"expErrors": false
},
1 change: 0 additions & 1 deletion test/tests/syntax-errors.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
"scenario": "Syntax errors",
"description": "Strings that produce syntax errors when parsed.",
"defaultTestProperties": {
"testType": "syntax",
"locale": "en-US",
"expErrors": [
{
1 change: 0 additions & 1 deletion test/tests/syntax.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@
"scenario": "Syntax",
"description": "Test cases that do not depend on any registry definitions.",
"defaultTestProperties": {
"testType": "syntax",
"locale": "en-US"
},
"tests": [