Skip to content

Commit

Permalink
Merge pull request #619 from VisLab/develop
Browse files Browse the repository at this point in the history
Modified definition test with no group
  • Loading branch information
VisLab authored Sep 13, 2024
2 parents abc9923 + f9637a9 commit 6cdf4d8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
5 changes: 3 additions & 2 deletions docs/source/Appendix_A.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ behavior of certain value classes (for example the `numericClass` value class).
* - nameClass
- `alphanumeric`, `hyphen`, `underscore`, `nonascii`
* - numericClass
- `digits`, `period`, `hyphen`, `plus`, 'caret`, `E`, `e` `
- `digits`, `period`, `hyphen`, `plus`, `caret`, `E`, `e` `
* - posixPath
- As yet unspecified.
* - textClass
- `printable` or `nonascii` excluding curly braces.
- `printable` or `nonascii` excluding curly braces, commas, and single quotes.
* - IRIClass
- Valid International Resource Identifier as standardized by [rfc3987](https://datatracker.ietf.org/doc/html/rfc3987).
``````
Expand All @@ -215,6 +215,7 @@ A BIDS regular expression for this is:
5. Values of `numericClass` must be equivalent to a valid floating point value.
6. Scientific notation is supported with the `numericClass`.
7. The `textClass` is for descriptions, mainly for use with the `Description` tag or schema element descriptions.
It is also allowed as the value for other tags such as
8. The `posixPath` class is as yet unspecified and currently allows any characters except commas.
9. The IRIClass validity is determined by a library implementing the IETF rfc3987 standard.
Expand Down
8 changes: 4 additions & 4 deletions tests/javascript_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@
"alt_codes": [
"TAG_EMPTY"
],
"name": "definition-invalid-missing-inner-group",
"name": "definition-invalid-empty-inner-group",
"description": "A definition's enclosing tag group has an empty inner group (i.e., the definition's contents).",
"warning": false,
"schema": "8.3.0",
Expand Down Expand Up @@ -5124,7 +5124,7 @@
}
},
"response": {
"HED": "Label/#"
"Description": "This is a response"
}
}
],
Expand Down Expand Up @@ -5154,7 +5154,7 @@
"face": "Statistical-accuracy/0.677, {response}"
}
},
"response": "Label/#"
"response": "This is a response"
},
"events": [
[
Expand Down Expand Up @@ -9763,7 +9763,7 @@
[
4.5,
0,
"Delay/1.0 s, (Red))"
"Delay/1.0 s, (Red)"
]
]
],
Expand Down
3 changes: 1 addition & 2 deletions tests/json_tests/DEFINITION_INVALID.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@
{
"error_code": "DEFINITION_INVALID",
"alt_codes": ["TAG_EMPTY"],
"name": "definition-invalid-missing-inner-group",
"description": "A definition's enclosing tag group has an empty inner group (i.e., the definition's contents).",
g "description": "A definition's enclosing tag group has an empty inner group (i.e., the definition's contents).",
"warning": false,
"schema": "8.3.0",
"definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"],
Expand Down
4 changes: 2 additions & 2 deletions tests/json_tests/SIDECAR_INVALID.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
}
},
"response": {
"HED": "Label/#"
"Description": "This is a response"
}
}
],
Expand Down Expand Up @@ -246,7 +246,7 @@
"face": "Statistical-accuracy/0.677, {response}"
}
},
"response": "Label/#"
"response": "This is a response"
},
"events": [
[
Expand Down
8 changes: 4 additions & 4 deletions tests/python_tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@
"alt_codes": [
"TAG_EMPTY"
],
"name": "definition-invalid-missing-inner-group",
"name": "definition-invalid-empty-inner-group",
"description": "A definition's enclosing tag group has an empty inner group (i.e., the definition's contents).",
"warning": false,
"schema": "8.3.0",
Expand Down Expand Up @@ -7966,7 +7966,7 @@
}
},
"response": {
"HED": "Label/#"
"Description": "This is a response"
}
}
],
Expand Down Expand Up @@ -7996,7 +7996,7 @@
"face": "Statistical-accuracy/0.677, {response}"
}
},
"response": "Label/#"
"response": "This is a response"
},
"events": [
[
Expand Down Expand Up @@ -12898,7 +12898,7 @@
[
4.5,
0,
"Delay/1.0 s, (Red))"
"Delay/1.0 s, (Red)"
]
]
],
Expand Down

0 comments on commit 6cdf4d8

Please sign in to comment.