| 1 |
# A DDL1 dictionary file for validity checking. The item names |
| 2 |
# defined here are used for two purposes; one set of names are |
| 3 |
# used in constructing valid/invalid blocks to be tested, and |
| 4 |
# the other set is used to construct a test report block. A |
| 5 |
# program is considered to correctly validate a CIF if it is |
| 6 |
# able to produce an equivalent report CIF block to that contained |
| 7 |
# together with the incorrectly constructed block |
| 8 |
|
| 9 |
data_on_this_dictionary |
| 10 |
|
| 11 |
_dictionary_name cif_validity_test.dic |
| 12 |
_dictionary_version 0.1 |
| 13 |
_dictionary_update 2005-09-07 |
| 14 |
_dictionary_history |
| 15 |
|
| 16 |
; |
| 17 |
2005-09-07 Initial draft J.R. Hester |
| 18 |
; |
| 19 |
|
| 20 |
data_test_reference_[test] |
| 21 |
_name '_test_reference_[test]' |
| 22 |
_category category_overview |
| 23 |
_type null |
| 24 |
_definition |
| 25 |
; Items in this category are used to describe the |
| 26 |
background of the validity test, and to link the |
| 27 |
test block with the report block. |
| 28 |
; |
| 29 |
|
| 30 |
data_test_reference_block_id |
| 31 |
_name '_test_reference_block_id' |
| 32 |
_category test_reference |
| 33 |
_type char |
| 34 |
_list no |
| 35 |
_definition |
| 36 |
; This id is used to link the block to be tested for |
| 37 |
validity with the report block. It should therefore |
| 38 |
be unique within the space of invalid blocks for checking. |
| 39 |
; |
| 40 |
|
| 41 |
data_test_reference_history |
| 42 |
_name '_test_reference_history' |
| 43 |
_category test_reference |
| 44 |
_type char |
| 45 |
_list both |
| 46 |
_definition 'Description of changes to the test block' |
| 47 |
|
| 48 |
data_test_reference_background |
| 49 |
_name '_test_reference_background' |
| 50 |
_category test_reference |
| 51 |
_type char |
| 52 |
_list no |
| 53 |
_definition |
| 54 |
; A description of the motivation for a test and the logic |
| 55 |
behind the construction of the invalid test block. |
| 56 |
; |
| 57 |
|
| 58 |
data_test_construct_[test] |
| 59 |
_name '_test_contruct_[test]' |
| 60 |
_category category_overview |
| 61 |
_type null |
| 62 |
_definition |
| 63 |
; _test_construct contains item names which can be used in |
| 64 |
constructing simple tests. Validity checking software |
| 65 |
should be able to validate against the definitions in |
| 66 |
this category and produce a report conforming to the |
| 67 |
definitions in the _test_report category |
| 68 |
; |
| 69 |
|
| 70 |
data_test_construct_character |
| 71 |
_name '_test_construct_character' |
| 72 |
_category test_construct |
| 73 |
_type char |
| 74 |
_list both |
| 75 |
_definition |
| 76 |
; A character type data item. There seems to be no way to |
| 77 |
construct a non-conformant item in a syntactically correct |
| 78 |
CIF. |
| 79 |
; |
| 80 |
|
| 81 |
data_test_construct_number |
| 82 |
_name '_test_construct_number' |
| 83 |
_category test_construct |
| 84 |
_type numb |
| 85 |
_list both |
| 86 |
_type_conditions none |
| 87 |
_definition |
| 88 |
; A plain number with no esd appended |
| 89 |
; |
| 90 |
|
| 91 |
data_test_construct_number_esd |
| 92 |
_name '_test_construct_number_esd' |
| 93 |
_category test_construct |
| 94 |
_type numb |
| 95 |
_list both |
| 96 |
_type_conditions esd |
| 97 |
_definition |
| 98 |
; A plain number with or without esd appended |
| 99 |
; |
| 100 |
|
| 101 |
data_test_construct_enumeration |
| 102 |
_name '_test_construct_enumeration' |
| 103 |
_category test_construct |
| 104 |
_type char |
| 105 |
_list both |
| 106 |
loop_ |
| 107 |
_enumeration |
| 108 |
_enumeration_detail |
| 109 |
ABC 'first letters' |
| 110 |
123 'first numbers' |
| 111 |
'do re mi' 'first notes' |
| 112 |
'Jan Feb' 'first months' |
| 113 |
_definition |
| 114 |
; An enumerated data item |
| 115 |
; |
| 116 |
|
| 117 |
data_test_construct_type_construct |
| 118 |
_name '_test_construct_type_construct' |
| 119 |
_category test_construct |
| 120 |
_type numb |
| 121 |
_type_construct '( *-?[0-9]+)' |
| 122 |
_list both |
| 123 |
_definition |
| 124 |
; An item with an explicit type construct, in this case |
| 125 |
cribbed from the MS dictionary. We may need to add a |
| 126 |
number of these for comprehensive testing. |
| 127 |
; |
| 128 |
|
| 129 |
data_test_construct_enumeration_range |
| 130 |
_name '_test_construct_enumeration_range' |
| 131 |
_category test_construct |
| 132 |
_type char |
| 133 |
_list both |
| 134 |
_enumeration_range -2:11.7 |
| 135 |
_definition |
| 136 |
; A data item with a specified range |
| 137 |
; |
| 138 |
|
| 139 |
data_test_result_[test] |
| 140 |
_name '_test_result_[test]' |
| 141 |
_category category_overview |
| 142 |
_type null |
| 143 |
_definition |
| 144 |
; Items in this category describe the results of validity |
| 145 |
tests. A conformant validity checking program should use |
| 146 |
these items to produce a CIF block identical to that |
| 147 |
provided with the invalid test block. |
| 148 |
; |
| 149 |
|
| 150 |
data_test_result_block_id |
| 151 |
_name '_test_result_block_id' |
| 152 |
_category test_result |
| 153 |
_type char |
| 154 |
_definition |
| 155 |
; This id should be identical to the _test_reference_block_id |
| 156 |
of the invalid CIF block to which this test result corresponds. |
| 157 |
; |
| 158 |
|
| 159 |
data_test_result_validity |
| 160 |
_name '_test_result_validity' |
| 161 |
_category test_result |
| 162 |
_type char |
| 163 |
loop_ |
| 164 |
_enumeration |
| 165 |
_enumeration_detail |
| 166 |
valid 'No invalid items or structures found' |
| 167 |
invalid 'One or more invalid items or structures present' |
| 168 |
_definition |
| 169 |
; This item describes whether or not the validity checking |
| 170 |
program found any errors in the test block |
| 171 |
; |
| 172 |
|
| 173 |
data_test_result_missing_name |
| 174 |
_name '_test_result_missing_name' |
| 175 |
_category test_result |
| 176 |
_type char |
| 177 |
_list both |
| 178 |
_definition |
| 179 |
; A list of item names which were not found in the dictionary. |
| 180 |
Note that item names which are not present in the dictionary |
| 181 |
do not invalidate a data block. |
| 182 |
; |
| 183 |
|
| 184 |
data_test_result_fail_item_name |
| 185 |
_name '_test_result_fail_item_name' |
| 186 |
_category test_result |
| 187 |
_type char |
| 188 |
_list both |
| 189 |
_definition |
| 190 |
; The name of a data item which has an invalid value or is |
| 191 |
incorrectly placed in the data block |
| 192 |
; |
| 193 |
|
| 194 |
data_test_result_fail_item_value |
| 195 |
_name '_test_result_fail_item_value' |
| 196 |
_category test_result |
| 197 |
_type char |
| 198 |
_list both |
| 199 |
_definition |
| 200 |
; If the validity error relates to an item value, the value |
| 201 |
of the invalid item |
| 202 |
; |
| 203 |
|
| 204 |
data_test_result_fail_type |
| 205 |
_name '_test_result_fail_type' |
| 206 |
_category test_result |
| 207 |
_type char |
| 208 |
_list both |
| 209 |
loop_ |
| 210 |
_enumeration |
| 211 |
_enumeration_detail |
| 212 |
'Value construction' |
| 213 |
; The value does not conform to the |
| 214 |
construction specified in the |
| 215 |
dictionary or DDL1 file |
| 216 |
; |
| 217 |
'Value range' 'Value outside specified range' |
| 218 |
'Value enumeration' 'Value not in enumeration set' |
| 219 |
'Esd appended' 'Esd appended when not allowed' |
| 220 |
|