diff --git a/tests/json_tests/SCHEMA_ATTRIBUTE_VALUE_INVALID_HED_ID.json b/tests/json_tests/SCHEMA_ATTRIBUTE_VALUE_INVALID_HED_ID.json new file mode 100644 index 0000000..675efba --- /dev/null +++ b/tests/json_tests/SCHEMA_ATTRIBUTE_VALUE_INVALID_HED_ID.json @@ -0,0 +1,146 @@ +[ + { + "error_code": "SCHEMA_ATTRIBUTE_VALUE_INVALID", + "name": "attribute-invalid-hed-id-changed", + "warning": true, + "description": "A schema value class issue, saying there is an unknown one.", + "schema": "", + "definitions": [], + "tests": { + "schema_tests": { + "fails": [ + [ + "HED version=\"8.4.0\"", + "'''Prologue'''", + "!# start schema", + "'''Event'''{hedId=HED_0015001}", + "!# end schema", + "'''Unit classes'''", + "'''Unit modifiers'''", + "'''Value classes'''", + "'''Schema attributes'''", + "* hedId {elementDomain}", + "'''Properties'''", + "* elementDomain", + "'''Epilogue'''", + "!# end hed" + ] + ], + "passes": [ + [ + "HED version=\"8.4.0\"", + "'''Prologue'''", + "!# start schema", + "'''Event'''{hedId=HED_0012001}", + "!# end schema", + "'''Unit classes'''", + "'''Unit modifiers'''", + "'''Value classes'''", + "'''Schema attributes'''", + "* hedId {elementDomain}", + "'''Properties'''", + "* elementDomain", + "'''Epilogue'''", + "!# end hed" + ] + ] + } + } + }, + { + "error_code": "SCHEMA_ATTRIBUTE_VALUE_INVALID", + "name": "attribute-invalid-hed-id-out-range", + "warning": true, + "description": "A schema value class issue, saying there is an unknown one.", + "schema": "", + "definitions": [], + "tests": { + "schema_tests": { + "fails": [ + [ + "HED version=\"8.4.0\"", + "'''Prologue'''", + "!# start schema", + "'''NewTagWithNewID'''{hedId=HED_0055000}", + "!# end schema", + "'''Unit classes'''", + "'''Unit modifiers'''", + "'''Value classes'''", + "'''Schema attributes'''", + "* hedId {elementDomain}", + "'''Properties'''", + "* elementDomain", + "'''Epilogue'''", + "!# end hed" + ] + ], + "passes": [ + [ + "HED version=\"8.4.0\"", + "'''Prologue'''", + "!# start schema", + "'''NewTagWithNewID'''{hedId=HED_0015001}", + "!# end schema", + "'''Unit classes'''", + "'''Unit modifiers'''", + "'''Value classes'''", + "'''Schema attributes'''", + "* hedId {elementDomain}", + "'''Properties'''", + "* elementDomain", + "'''Epilogue'''", + "!# end hed" + ] + ] + } + } + }, + { + "error_code": "SCHEMA_ATTRIBUTE_VALUE_INVALID", + "name": "attribute-invalid-hed-id-invalid", + "warning": true, + "description": "A schema value class issue, saying there is an unknown one.", + "schema": "", + "definitions": [], + "tests": { + "schema_tests": { + "fails": [ + [ + "HED version=\"8.4.0\"", + "'''Prologue'''", + "!# start schema", + "'''NewTagWithNewID'''{hedId=HED_XXXXXXX}", + "!# end schema", + "'''Unit classes'''", + "'''Unit modifiers'''", + "'''Value classes'''", + "'''Schema attributes'''", + "* hedId {elementDomain}", + "'''Properties'''", + "* elementDomain", + "'''Epilogue'''", + "!# end hed" + ] + ], + "passes": [ + [ + "HED version=\"8.4.0\"", + "'''Prologue'''", + "!# start schema", + "'''NewTagWithNewID'''{hedId=HED_0015001}", + "!# end schema", + "'''Unit classes'''", + "'''Unit modifiers'''", + "'''Value classes'''", + "'''Schema attributes'''", + "* hedId {elementDomain}", + "'''Properties'''", + "* elementDomain", + "'''Epilogue'''", + "!# end hed" + ] + ] + } + } + } +] \ No newline at end of file