@@ -24,7 +24,7 @@ These testcases are designed to help describe behaviour in edge cases and ambigu
24
24
25
25
[ Sample IDS] ( testcases/restriction/pass-an_enumeration_matches_case_sensitively_1_3.ids ) - [ Sample IFC: 1] ( testcases/restriction/pass-an_enumeration_matches_case_sensitively_1_3.ifc )
26
26
27
- ## [ PASS] An enumeration matches case sensitively 1 /3
27
+ ## [ PASS] An enumeration matches case sensitively 2 /3
28
28
29
29
~~~ xml
30
30
<attribute minOccurs =" 1" maxOccurs =" 1" >
@@ -44,9 +44,9 @@ These testcases are designed to help describe behaviour in edge cases and ambigu
44
44
# 1 = IFCWALL (' 1hqIFTRjfV6AWq_bMtnZwI' ,$,' Bar' ,$,$,$,$,$,$); /* Testcase */
45
45
~~~
46
46
47
- [ Sample IDS] ( testcases/restriction/pass-an_enumeration_matches_case_sensitively_1_3 .ids ) - [ Sample IFC: 1] ( testcases/restriction/pass-an_enumeration_matches_case_sensitively_1_3 .ifc )
47
+ [ Sample IDS] ( testcases/restriction/pass-an_enumeration_matches_case_sensitively_2_3 .ids ) - [ Sample IFC: 1] ( testcases/restriction/pass-an_enumeration_matches_case_sensitively_2_3 .ifc )
48
48
49
- ## [ FAIL] An enumeration matches case sensitively 1 /3
49
+ ## [ FAIL] An enumeration matches case sensitively 3 /3
50
50
51
51
~~~ xml
52
52
<attribute minOccurs =" 1" maxOccurs =" 1" >
@@ -66,7 +66,7 @@ These testcases are designed to help describe behaviour in edge cases and ambigu
66
66
# 1 = IFCWALL (' 1hqIFTRjfV6AWq_bMtnZwI' ,$,' Baz' ,$,$,$,$,$,$); /* Testcase */
67
67
~~~
68
68
69
- [ Sample IDS] ( testcases/restriction/fail-an_enumeration_matches_case_sensitively_1_3 .ids ) - [ Sample IFC: 1] ( testcases/restriction/fail-an_enumeration_matches_case_sensitively_1_3 .ifc )
69
+ [ Sample IDS] ( testcases/restriction/fail-an_enumeration_matches_case_sensitively_3_3 .ids ) - [ Sample IFC: 1] ( testcases/restriction/fail-an_enumeration_matches_case_sensitively_3_3 .ifc )
70
70
71
71
## [ PASS] A bound can be inclusive 1/4
72
72
@@ -285,3 +285,133 @@ These testcases are designed to help describe behaviour in edge cases and ambigu
285
285
286
286
[ Sample IDS] ( testcases/restriction/fail-regex_patterns_can_be_used_3_3.ids ) - [ Sample IFC: 1] ( testcases/restriction/fail-regex_patterns_can_be_used_3_3.ifc )
287
287
288
+ ## [ PASS] Length checks can be used 1/2
289
+
290
+ ~~~ xml
291
+ <attribute minOccurs =" 1" maxOccurs =" 1" >
292
+ <name >
293
+ <simpleValue >Name</simpleValue >
294
+ </name >
295
+ <value >
296
+ <xs : restriction base =" xs:string" >
297
+ <xs : length value =" 2" fixed =" false" />
298
+ </xs : restriction >
299
+ </value >
300
+ </attribute >
301
+ ~~~
302
+
303
+ ~~~ lua
304
+ # 1 = IFCWALL (' 1hqIFTRjfV6AWq_bMtnZwI' ,$,' AB' ,$,$,$,$,$,$); /* Testcase */
305
+ ~~~
306
+
307
+ [ Sample IDS] ( testcases/restriction/pass-length_checks_can_be_used_1_2.ids ) - [ Sample IFC: 1] ( testcases/restriction/pass-length_checks_can_be_used_1_2.ifc )
308
+
309
+ ## [ FAIL] Length checks can be used 1/2
310
+
311
+ ~~~ xml
312
+ <attribute minOccurs =" 1" maxOccurs =" 1" >
313
+ <name >
314
+ <simpleValue >Name</simpleValue >
315
+ </name >
316
+ <value >
317
+ <xs : restriction base =" xs:string" >
318
+ <xs : length value =" 2" fixed =" false" />
319
+ </xs : restriction >
320
+ </value >
321
+ </attribute >
322
+ ~~~
323
+
324
+ ~~~ lua
325
+ # 1 = IFCWALL (' 1hqIFTRjfV6AWq_bMtnZwI' ,$,' ABC' ,$,$,$,$,$,$); /* Testcase */
326
+ ~~~
327
+
328
+ [ Sample IDS] ( testcases/restriction/fail-length_checks_can_be_used_1_2.ids ) - [ Sample IFC: 1] ( testcases/restriction/fail-length_checks_can_be_used_1_2.ifc )
329
+
330
+ ## [ FAIL] Max and min length checks can be used 1/3
331
+
332
+ ~~~ xml
333
+ <attribute minOccurs =" 1" maxOccurs =" 1" >
334
+ <name >
335
+ <simpleValue >Name</simpleValue >
336
+ </name >
337
+ <value >
338
+ <xs : restriction base =" xs:string" >
339
+ <xs : minLength value =" 2" fixed =" false" />
340
+ <xs : maxLength value =" 3" fixed =" false" />
341
+ </xs : restriction >
342
+ </value >
343
+ </attribute >
344
+ ~~~
345
+
346
+ ~~~ lua
347
+ # 1 = IFCWALL (' 1hqIFTRjfV6AWq_bMtnZwI' ,$,' A' ,$,$,$,$,$,$); /* Testcase */
348
+ ~~~
349
+
350
+ [ Sample IDS] ( testcases/restriction/fail-max_and_min_length_checks_can_be_used_1_3.ids ) - [ Sample IFC: 1] ( testcases/restriction/fail-max_and_min_length_checks_can_be_used_1_3.ifc )
351
+
352
+ ## [ PASS] Max and min length checks can be used 2/3
353
+
354
+ ~~~ xml
355
+ <attribute minOccurs =" 1" maxOccurs =" 1" >
356
+ <name >
357
+ <simpleValue >Name</simpleValue >
358
+ </name >
359
+ <value >
360
+ <xs : restriction base =" xs:string" >
361
+ <xs : minLength value =" 2" fixed =" false" />
362
+ <xs : maxLength value =" 3" fixed =" false" />
363
+ </xs : restriction >
364
+ </value >
365
+ </attribute >
366
+ ~~~
367
+
368
+ ~~~ lua
369
+ # 1 = IFCWALL (' 1hqIFTRjfV6AWq_bMtnZwI' ,$,' AB' ,$,$,$,$,$,$); /* Testcase */
370
+ ~~~
371
+
372
+ [ Sample IDS] ( testcases/restriction/pass-max_and_min_length_checks_can_be_used_2_3.ids ) - [ Sample IFC: 1] ( testcases/restriction/pass-max_and_min_length_checks_can_be_used_2_3.ifc )
373
+
374
+ ## [ PASS] Max and min length checks can be used 3/3
375
+
376
+ ~~~ xml
377
+ <attribute minOccurs =" 1" maxOccurs =" 1" >
378
+ <name >
379
+ <simpleValue >Name</simpleValue >
380
+ </name >
381
+ <value >
382
+ <xs : restriction base =" xs:string" >
383
+ <xs : minLength value =" 2" fixed =" false" />
384
+ <xs : maxLength value =" 3" fixed =" false" />
385
+ </xs : restriction >
386
+ </value >
387
+ </attribute >
388
+ ~~~
389
+
390
+ ~~~ lua
391
+ # 1 = IFCWALL (' 1hqIFTRjfV6AWq_bMtnZwI' ,$,' ABC' ,$,$,$,$,$,$); /* Testcase */
392
+ ~~~
393
+
394
+ [ Sample IDS] ( testcases/restriction/pass-max_and_min_length_checks_can_be_used_3_3.ids ) - [ Sample IFC: 1] ( testcases/restriction/pass-max_and_min_length_checks_can_be_used_3_3.ifc )
395
+
396
+ ## [ FAIL] Max and min length checks can be used 4/3
397
+
398
+ ~~~ xml
399
+ <attribute minOccurs =" 1" maxOccurs =" 1" >
400
+ <name >
401
+ <simpleValue >Name</simpleValue >
402
+ </name >
403
+ <value >
404
+ <xs : restriction base =" xs:string" >
405
+ <xs : minLength value =" 2" fixed =" false" />
406
+ <xs : maxLength value =" 3" fixed =" false" />
407
+ </xs : restriction >
408
+ </value >
409
+ </attribute >
410
+ ~~~
411
+
412
+ ~~~ lua
413
+ # 1 = IFCWALL (' 1hqIFTRjfV6AWq_bMtnZwI' ,$,' ABCD' ,$,$,$,$,$,$); /* Testcase */
414
+ ~~~
415
+
416
+ [ Sample IDS] ( testcases/restriction/fail-max_and_min_length_checks_can_be_used_4_3.ids ) - [ Sample IFC: 1] ( testcases/restriction/fail-max_and_min_length_checks_can_be_used_4_3.ifc )
417
+
0 commit comments