Debian Codegraph @

tests/yaml/match-vs-always.yaml

raw symbols SCIP
1 #!tools/lou_checkyaml
2 #
3 # Comparison of match and "normal" opcodes
4 # ::::::::::::::::::::::::::::::::::::::::
5 #
6 # Copyright © 2024 by Swiss Library for the Blind, Visually Impaired and Print Disabled
7 #
8 # Copying and distribution of this file, with or without modification,
9 # are permitted in any medium without royalty provided the copyright
10 # notice and this notice are preserved. This file is offered as-is,
11 # without any warranty.
12 # ..............................................................................................
13
14 display: tables/unicode-without-blank.dis
15
16 # ..............................................................................................
17
18 # match with no pre- and post pattern can be replaced with an always opcode
19 table: |
20 include tables/latinLetterDef6Dots.uti
21 include tables/digits6Dots.uti
22 space \s 0
23 punctuation . 6
24 match - foo - 1-2
25 table : |
26 include tables/latinLetterDef6Dots.uti
27 include tables/digits6Dots.uti
28 space \s 0
29 punctuation . 6
30 always foo 1-2
31 tests:
32 - - "foo"
33 - ⠁⠂
34 - - " foo "
35 - " ⠁⠂ "
36 - - " foo1"
37 - " ⠁⠂⠁"
38 - - " foo."
39 - " ⠁⠂⠠"
40 - - " foob"
41 - " ⠁⠂⠃"
42