Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

01_test_regexes.md 8.01 KB
Newer Older
1
2


di68kap's avatar
di68kap committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Test of parser: "SCHLUESSELWORT"
================================


Match-test "m1"
---------------

### Test-code:
    
    AUTORIN 

### AST
    (SCHLUESSELWORT
        (:RegExp
            ""
            ""
        )
        (:RegExp
            "AUTORIN "
        )
    )


26
27
28
29
Test of parser: "RZS"
=====================


di68kap's avatar
di68kap committed
30
31
Match-test "m1"
---------------
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

### Test-code:
    
    

### CST
    (RZS
        ""
        ""
    )


Test of parser: "LEERZEILE"
===========================


di68kap's avatar
di68kap committed
48
49
Match-test "m1"
---------------
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

### Test-code:
    
    
    

### AST
    (LEERZEILE
        (:RegExp
            ""
            ""
            ""
        )
    )

di68kap's avatar
di68kap committed
65
66
Match-test "m2"
---------------
67
68
69
70

### Test-code:
    
    
di68kap's avatar
di68kap committed
71
    // Kommentar
72
73
74
75
76
77
78
79
80

### AST
    (LEERZEILE
        (:RegExp
            ""
            ""
            ""
        )
        (:RE
di68kap's avatar
di68kap committed
81
            "// Kommentar"
82
83
84
        )
    )

di68kap's avatar
di68kap committed
85
86
Match-test "m3"
---------------
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103

### Test-code:
    
    
    
    

### AST
    (LEERZEILE
        (:RegExp
            ""
            ""
            ""
            ""
        )
    )

di68kap's avatar
di68kap committed
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Match-test "m4"
---------------

### Test-code:
    
    
    /* Kommentar
    
    Kommentar fortsetzung */
    

### CST
    (LEERZEILE
        (:RegExp
            ""
            ""
            ""
        )
        (:RE
            (:Whitespace
                "/* Kommentar"
                ""
                "Kommentar fortsetzung */"
            )
            (:RegExp
                ""
                ""
            )
        )
    )

di68kap's avatar
di68kap committed
135
136
137
138
139
140
141
142
143
144
145
146
147
Fail-test "f1"
--------------

### Test-code:
    
    

Fail-test "f2"
--------------

### Test-code:
    
    
di68kap's avatar
di68kap committed
148
    // Kommentar
di68kap's avatar
di68kap committed
149
    
di68kap's avatar
di68kap committed
150
    // Kommentar
di68kap's avatar
di68kap committed
151
152
    

153
154
155
156
157

Test of parser: "LÜCKE"
=======================


di68kap's avatar
di68kap committed
158
159
Match-test "m1"
---------------
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176

### Test-code:
    
    
    

### AST
    (LÜCKE
        (LEERZEILE
            (:RegExp
                ""
                ""
                ""
            )
        )
    )

di68kap's avatar
di68kap committed
177
178
Match-test "m2"
---------------
179
180
181
182

### Test-code:
    
    
di68kap's avatar
di68kap committed
183
    // Kommentar
184
185
186
187
188
189
190
191
192
193
194
195
    

### AST
    (LÜCKE
        (LEERZEILE
            (:RegExp
                ""
                ""
                ""
            )
            (:RE
                (:Whitespace
di68kap's avatar
di68kap committed
196
                    "// Kommentar"
197
198
199
200
201
202
203
204
205
                )
                (:RegExp
                    ""
                    ""
                )
            )
        )
    )

di68kap's avatar
di68kap committed
206
207
Match-test "m3"
---------------
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226

### Test-code:
    
    
    
    

### AST
    (LÜCKE
        (LEERZEILE
            (:RegExp
                ""
                ""
                ""
                ""
            )
        )
    )

di68kap's avatar
di68kap committed
227
228
Match-test "m4"
---------------
229
230
231
232

### Test-code:
    
    
di68kap's avatar
di68kap committed
233
    // Kommentar
234
    
di68kap's avatar
di68kap committed
235
    // Kommentar
236
237
238
239
240
241
242
243
244
245
246
247
    

### AST
    (LÜCKE
        (LEERZEILE
            (:RegExp
                ""
                ""
                ""
            )
            (:RE
                (:Whitespace
di68kap's avatar
di68kap committed
248
                    "// Kommentar"
249
250
251
252
253
254
255
                )
                (:RegExp
                    ""
                    ""
                )
            )
        )
di68kap's avatar
di68kap committed
256
        (LZ
257
258
259
260
261
            (:RegExp
                ""
                ""
            )
            (:RegExp
di68kap's avatar
di68kap committed
262
                "// Kommentar"
263
264
265
266
267
268
269
270
            )
            (:RegExp
                ""
                ""
            )
        )
    )

di68kap's avatar
di68kap committed
271
272
Match-test "m5"
---------------
273
274

### Test-code:
di68kap's avatar
di68kap committed
275
276
     //Kommentar
    //Kommentar
277
    
di68kap's avatar
di68kap committed
278
    // Kommentar
279
280
281
282
283
284
285
286
287

### AST
    (LÜCKE
        (KOMMENTARZEILEN
            (:Series
                (:RegExp
                    " "
                )
                (:RegExp
di68kap's avatar
di68kap committed
288
                    "//Kommentar"
289
290
291
292
293
294
295
296
                )
            )
            (:Series
                (:RegExp
                    ""
                    ""
                )
                (:RegExp
di68kap's avatar
di68kap committed
297
                    "//Kommentar"
298
299
300
301
302
303
304
305
306
307
                )
            )
        )
        (LEERZEILE
            (:RegExp
                ""
                ""
                ""
            )
            (:RE
di68kap's avatar
di68kap committed
308
                "// Kommentar"
309
310
311
312
            )
        )
    )

di68kap's avatar
di68kap committed
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
Fail-test "f1"
--------------

### Test-code:
     

Fail-test "f2"
--------------

### Test-code:
    
    

Fail-test "f3"
--------------

### Test-code:
    
di68kap's avatar
di68kap committed
331
    // Kommentar
di68kap's avatar
di68kap committed
332
333
334
335
336

Fail-test "f4"
--------------

### Test-code:
di68kap's avatar
di68kap committed
337
338
339
340
341
342
343
344
345
346
347
348
     //Kommentar
    // Kommentar
    // Kommentar

Fail-test "f5"
--------------

### Test-code:
     //Kommentar
    /* Kommentar
    
    Kommentar */
di68kap's avatar
di68kap committed
349

350

di68kap's avatar
di68kap committed
351
352
Test of parser: "LZ"
====================
353
354


di68kap's avatar
di68kap committed
355
356
Match-test "m1"
---------------
357
358
359
360
361

### Test-code:
     

### AST
di68kap's avatar
di68kap committed
362
    (LZ
363
364
365
366
367
        (:RegExp
            " "
        )
    )

di68kap's avatar
di68kap committed
368
369
Match-test "m2"
---------------
370
371

### Test-code:
di68kap's avatar
di68kap committed
372
     // Kommentar
373
374

### AST
di68kap's avatar
di68kap committed
375
    (LZ
376
377
378
379
        (:RegExp
            " "
        )
        (:RegExp
di68kap's avatar
di68kap committed
380
            "// Kommentar"
381
382
383
        )
    )

di68kap's avatar
di68kap committed
384
385
Match-test "m3"
---------------
386
387
388
389
390

### Test-code:
      

### AST
di68kap's avatar
di68kap committed
391
    (LZ
392
393
394
395
396
        (:RegExp
            "  "
        )
    )

di68kap's avatar
di68kap committed
397
398
Match-test "m4"
---------------
399
400

### Test-code:
di68kap's avatar
di68kap committed
401
    // Kommentar
402
403

### AST
di68kap's avatar
di68kap committed
404
    (LZ
405
        (:RegExp
di68kap's avatar
di68kap committed
406
            "// Kommentar"
407
408
409
        )
    )

di68kap's avatar
di68kap committed
410
411
Match-test "m5"
---------------
412
413

### Test-code:
di68kap's avatar
di68kap committed
414
    // Kommentar
415
416
417
    

### AST
di68kap's avatar
di68kap committed
418
    (LZ
419
        (:RegExp
di68kap's avatar
di68kap committed
420
            "// Kommentar"
421
422
423
424
425
426
427
        )
        (:RegExp
            ""
            ""
        )
    )

di68kap's avatar
di68kap committed
428
429
Match-test "m6"
---------------
430
431
432

### Test-code:
    
di68kap's avatar
di68kap committed
433
    // Kommentar
434
    
di68kap's avatar
di68kap committed
435
    // Kommentar
436
437
438
439
    
    

### AST
di68kap's avatar
di68kap committed
440
    (LZ
441
442
443
444
445
        (:RegExp
            ""
            ""
        )
        (:RegExp
di68kap's avatar
di68kap committed
446
            "// Kommentar"
447
448
449
450
451
452
453
        )
        (:RegExp
            ""
            ""
            ""
        )
        (:RegExp
di68kap's avatar
di68kap committed
454
            "// Kommentar"
455
456
457
458
459
460
461
462
        )
        (:RegExp
            ""
            ""
            ""
        )
    )

di68kap's avatar
di68kap committed
463
464
Match-test "m7"
---------------
465
466
467
468
469
470
471
472

### Test-code:
    
    
    
    

### AST
di68kap's avatar
di68kap committed
473
    (LZ
474
475
476
477
478
479
480
481
        (:RegExp
            ""
            ""
            ""
            ""
        )
    )

di68kap's avatar
di68kap committed
482
483
484
485
486
487
Fail-test "f1"
--------------

### Test-code:
    X

488
489
490
491
492

Test of parser: "ZWW"
=====================


di68kap's avatar
di68kap committed
493
494
Match-test "m1"
---------------
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509

### Test-code:
    
    

### AST
    (ZWW
        (ZEILENSPRUNG
            (:RegExp
                ""
                ""
            )
        )
    )

di68kap's avatar
di68kap committed
510
511
Match-test "m2"
---------------
512
513
514

### Test-code:
    
di68kap's avatar
di68kap committed
515
    // Kommentar
516
517
518
519
520
521
522
523
524

### AST
    (ZWW
        (ZEILENSPRUNG
            (:RegExp
                ""
                ""
            )
            (:Whitespace
di68kap's avatar
di68kap committed
525
                "// Kommentar"
526
527
528
529
            )
        )
    )

di68kap's avatar
di68kap committed
530
531
Match-test "m3"
---------------
532
533
534

### Test-code:
    
di68kap's avatar
di68kap committed
535
    // Kommentar
536
537
538
539
540
541
542
543
544
545
    

### AST
    (ZWW
        (ZEILENSPRUNG
            (:RegExp
                ""
                ""
            )
            (:Whitespace
di68kap's avatar
di68kap committed
546
                "// Kommentar"
547
548
            )
        )
di68kap's avatar
di68kap committed
549
        (LZ
550
551
552
553
554
555
556
            (:RegExp
                ""
                ""
            )
        )
    )

di68kap's avatar
di68kap committed
557
558
Match-test "m4"
---------------
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573

### Test-code:
    
    
    
    

### AST
    (ZWW
        (ZEILENSPRUNG
            (:RegExp
                ""
                ""
            )
        )
di68kap's avatar
di68kap committed
574
        (LZ
575
576
577
578
579
580
581
582
            (:RegExp
                ""
                ""
                ""
            )
        )
    )

di68kap's avatar
di68kap committed
583
584
585
586
587
588
Fail-test "f1"
--------------

### Test-code:
     

589
590
591
592
593

Test of parser: "ZW"
====================


di68kap's avatar
di68kap committed
594
595
Match-test "m1"
---------------
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610

### Test-code:
    
    

### AST
    (ZW
        (ZEILENSPRUNG
            (:RegExp
                ""
                ""
            )
        )
    )

di68kap's avatar
di68kap committed
611
612
Match-test "m2"
---------------
613
614
615

### Test-code:
    
di68kap's avatar
di68kap committed
616
    // Kommentar
617
618
619
620
621
622
623
624
625

### AST
    (ZW
        (ZEILENSPRUNG
            (:RegExp
                ""
                ""
            )
            (:Whitespace
di68kap's avatar
di68kap committed
626
                "// Kommentar"
627
628
            )
        )
di68kap's avatar
di68kap committed
629
630
631
632
633
634
635
636
    )

Fail-test "f1"
--------------

### Test-code:
    
    
di68kap's avatar
di68kap committed
637
638
639
640
641
642
643
644
645
646
647
    


Test of parser: "FREITEXT"
==========================


Fail-test "f1"
--------------

### Test-code:
di68kap's avatar
di68kap committed
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
    Text -> Verweis


Test of parser: "SEITENZAHL"
============================


Match-test "m1"
---------------

### Test-code:
    123

### AST
    (SEITENZAHL
        "123"
    )

Match-test "m2"
---------------

### Test-code:
    123^b

### AST
    (SEITENZAHL
        "123^b"
    )

Match-test "m3"
---------------

### Test-code:
    4^{capit.}

### AST
    (SEITENZAHL
        "4^{capit.}"
    )