From 82bbcbb67c24c7205e09a34254fdf4de64481864 Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:20:39 -0500 Subject: [PATCH] Updated JSON tests (#623) * Updated test versions to 8.3.0 and clarified conditions for TAG_INVALID * Merged NODE_NAME_EMPTY into TAG_INVALID * Corrected additional NODE_NAME_EMPTY_LINKS * Lower the schema version on two tests back * Made hed_error_codes.json only contain codes with json files * Add hedID validation tests * Updated some of invalid characters * Updated the JSON tests to have all fields * Updated tests to include warning and alt_code in non-schema tests * Updated the tests with additional alt-codes * Definition may have no inner group * Minor update in appendix B errors * Minor changes to tests * Corrected a typo in the specification * Correction to curly brace test * Modified the test for definition with no group * Updated consolidated json tests (#622) * Updated tests and descriptions of duration handling (#620) * Updated test versions to 8.3.0 and clarified conditions for TAG_INVALID * Merged NODE_NAME_EMPTY into TAG_INVALID * Corrected additional NODE_NAME_EMPTY_LINKS * Lower the schema version on two tests back * Made hed_error_codes.json only contain codes with json files * Add hedID validation tests * Updated some of invalid characters * Updated the JSON tests to have all fields * Updated tests to include warning and alt_code in non-schema tests * Updated the tests with additional alt-codes * Definition may have no inner group * Minor update in appendix B errors * Minor changes to tests * Corrected a typo in the specification * Correction to curly brace test * Modified the test for definition with no group --------- Co-authored-by: IanCa * Updated spec tests and description of Duration handling (#621) * Updated test versions to 8.3.0 and clarified conditions for TAG_INVALID * Merged NODE_NAME_EMPTY into TAG_INVALID * Corrected additional NODE_NAME_EMPTY_LINKS * Lower the schema version on two tests back * Made hed_error_codes.json only contain codes with json files * Add hedID validation tests * Updated some of invalid characters * Updated the JSON tests to have all fields * Updated tests to include warning and alt_code in non-schema tests * Updated the tests with additional alt-codes * Definition may have no inner group * Minor update in appendix B errors * Minor changes to tests * Corrected a typo in the specification * Correction to curly brace test * Modified the test for definition with no group --------- Co-authored-by: IanCa * Reran consolidation tests --------- Co-authored-by: IanCa --------- Co-authored-by: IanCa --- tests/json_tests/DEFINITION_INVALID.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/json_tests/DEFINITION_INVALID.json b/tests/json_tests/DEFINITION_INVALID.json index a5ae4dc..28432cd 100644 --- a/tests/json_tests/DEFINITION_INVALID.json +++ b/tests/json_tests/DEFINITION_INVALID.json @@ -84,7 +84,8 @@ { "error_code": "DEFINITION_INVALID", "alt_codes": ["TAG_EMPTY"], -g "description": "A definition's enclosing tag group has an empty inner group (i.e., the definition's contents).", + "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", "definitions": ["(Definition/Acc/#, (Acceleration/#, Red))", "(Definition/MyColor, (Label/Pie))"],