-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #546 from hed-standard/develop
Sync up the branches
- Loading branch information
Showing
18 changed files
with
1,646 additions
and
648 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
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
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
60 changes: 60 additions & 0 deletions
60
tests/json_tests/SCHEMA_ATTRIBUTE_VALUE_INVALID_ALLOWED_CHARACTER.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,60 @@ | ||
[ | ||
{ | ||
"error_code": "SCHEMA_ATTRIBUTE_VALUE_INVALID", | ||
"name": "attribute-invalid-allowed-character", | ||
"warning": true, | ||
"description": "A schema unit has an invalid conversion factor", | ||
"schema": "", | ||
"definitions": [], | ||
"tests": { | ||
"schema_tests": { | ||
"fails": [ | ||
[ | ||
"HED version=\"1.0.0\" library=\"score\" withStandard=\"8.2.0\" unmerged=\"True\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"!# end schema", | ||
"'''Unit classes''' ", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"* testValueClass {allowedCharacter=?d}", | ||
"'''Schema attributes'''", | ||
"'''Properties'''", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
], | ||
"passes": [ | ||
[ | ||
"HED version=\"1.0.0\" library=\"score\" withStandard=\"8.2.0\" unmerged=\"True\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"!# end schema", | ||
"'''Unit classes''' ", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"* testValueClass {allowedCharacter=?, allowedCharacter=letters}", | ||
"'''Schema attributes'''", | ||
"'''Properties'''", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
], | ||
[ | ||
"HED version=\"1.0.0\" library=\"score\" withStandard=\"8.2.0\" unmerged=\"True\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"!# end schema", | ||
"'''Unit classes''' ", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"* testValueClass {allowedCharacter=letters}", | ||
"'''Schema attributes'''", | ||
"'''Properties'''", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
] | ||
} | ||
} | ||
} | ||
] |
136 changes: 136 additions & 0 deletions
136
tests/json_tests/SCHEMA_ATTRIBUTE_VALUE_INVALID_CONVERSION_FACTOR.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,136 @@ | ||
[ | ||
{ | ||
"error_code": "SCHEMA_ATTRIBUTE_VALUE_INVALID", | ||
"name": "attribute-conversion-factor-invalid", | ||
"warning": true, | ||
"description": "A schema unit has an invalid conversion factor", | ||
"schema": "", | ||
"definitions": [], | ||
"tests": { | ||
"schema_tests": { | ||
"fails": [ | ||
[ | ||
"HED version=\"1.0.0\" library=\"score\" withStandard=\"8.2.0\" unmerged=\"True\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"!# end schema", | ||
"'''Unit classes''' ", | ||
"* testUnitClass ", | ||
"** testUnit1{SIUnit, conversionFactor=-1.0}", | ||
"** testUnit2", | ||
"** testUnit3", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"'''Properties'''", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
], | ||
[ | ||
"HED version=\"1.0.0\" library=\"score\" withStandard=\"8.2.0\" unmerged=\"True\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"!# end schema", | ||
"'''Unit classes''' ", | ||
"* testUnitClass ", | ||
"** testUnit1{SIUnit, conversionFactor=word}", | ||
"** testUnit2", | ||
"** testUnit3", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"'''Properties'''", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
], | ||
[ | ||
"HED version=\"1.0.0\" library=\"score\" withStandard=\"8.2.0\" unmerged=\"True\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"!# end schema", | ||
"'''Unit classes''' ", | ||
"* testUnitClass ", | ||
"** testUnit1{SIUnit, conversionFactor=None}", | ||
"** testUnit2", | ||
"** testUnit3", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"'''Properties'''", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
], | ||
[ | ||
"HED version=\"1.0.0\" library=\"score\" withStandard=\"8.2.0\" unmerged=\"True\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"!# end schema", | ||
"'''Unit classes''' ", | ||
"* testUnitClass ", | ||
"** testUnit1{SIUnit, conversionFactor}", | ||
"** testUnit2", | ||
"** testUnit3", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"'''Properties'''", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
], | ||
"passes": [ | ||
[ | ||
"HED version=\"1.0.0\" library=\"score\" withStandard=\"8.2.0\" unmerged=\"True\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"!# end schema", | ||
"'''Unit classes''' ", | ||
"* testUnitClass {defaultUnits=testUnit1}", | ||
"** testUnit1", | ||
"** testUnit2", | ||
"** testUnit3", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"'''Properties'''", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"error_code": "WIKI_DELIMITERS_INVALID", | ||
"name": "attribute-conversion-format", | ||
"warning": true, | ||
"description": "A schema unit has an invalid conversion factor due to bad formatting", | ||
"schema": "", | ||
"definitions": [], | ||
"tests": { | ||
"schema_tests": { | ||
"fails": [ | ||
[ | ||
"HED version=\"1.0.0\" library=\"score\" withStandard=\"8.2.0\" unmerged=\"True\"", | ||
"'''Prologue'''", | ||
"!# start schema", | ||
"!# end schema", | ||
"'''Unit classes''' ", | ||
"* testUnitClass ", | ||
"** testUnit1{SIUnit, conversionFactor=}", | ||
"** testUnit2", | ||
"** testUnit3", | ||
"'''Unit modifiers'''", | ||
"'''Value classes'''", | ||
"'''Schema attributes'''", | ||
"'''Properties'''", | ||
"'''Epilogue'''", | ||
"!# end hed" | ||
] | ||
], | ||
"passes": [ | ||
] | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.