]> mj.ucw.cz Git - libucw.git/blob - ucw/string.t
tableprinter: update of column order
[libucw.git] / ucw / string.t
1 # Tests of string routines
2
3 Run:    ../obj/ucw/str-hex-t
4 Out:    FEEDF00D
5         fe:ed:f0:0d
6         feedf00d
7
8 Run:    ../obj/ucw/str-esc-t '12\r\n\000\\\xff'
9 Out:    31 32 0d 0a 00 5c ff
10
11 Run:    ../obj/ucw/str-esc-t '\100\10a\1a'
12 Out:    40 08 61 01 61
13
14 Run:    ../obj/ucw/str-esc-t '\a\b\f\r\n\t\v\?\"'"\\'"
15 Out:    07 08 0c 0d 0a 09 0b 3f 22 27
16
17 Name:   prefix1
18 Run:    ../obj/ucw/str-fix-t p homo.sapiens.neanderthalensis homo.sap
19 Out:    YES
20
21 Name:   prefix2
22 Run:    ../obj/ucw/str-fix-t p homo.sapiens.neanderthalensis homo.sapiens.neanderthalensis
23 Out:    YES
24
25 Name:   prefix3
26 Run:    ../obj/ucw/str-fix-t p homo.sapiens.neanderthalensis ""
27 Out:    YES
28
29 Name:   prefix4
30 Run:    ../obj/ucw/str-fix-t p homo.sapiens.neanderthalensis homo.sapiens.neanderthalensisis
31 Out:    NO
32
33 Name:   suffix1
34 Run:    ../obj/ucw/str-fix-t s homo.sapiens.neanderthalensis ensis
35 Out:    YES
36
37 Name:   suffix2
38 Run:    ../obj/ucw/str-fix-t s homo.sapiens.neanderthalensis homo.sapiens.neanderthalensis
39 Out:    YES
40
41 Name:   suffix3
42 Run:    ../obj/ucw/str-fix-t s homo.sapiens.neanderthalensis ""
43 Out:    YES
44
45 Name:   suffix4
46 Run:    ../obj/ucw/str-fix-t s homo.sapiens.neanderthalensis ecce.homo.sapiens.neanderthalensis
47 Out:    NO
48
49 Name:   hier-prefix1
50 Run:    ../obj/ucw/str-fix-t P homo.sapiens.neanderthalensis homo.sap
51 Out:    NO
52
53 Name:   hier-prefix2
54 Run:    ../obj/ucw/str-fix-t P homo.sapiens.neanderthalensis homo.sapiens
55 Out:    YES
56
57 Name:   hier-prefix3
58 Run:    ../obj/ucw/str-fix-t P homo.sapiens.neanderthalensis homo.sapiens.
59 Out:    YES
60
61 Name:   hier-prefix4
62 Run:    ../obj/ucw/str-fix-t P homo.sapiens.neanderthalensis homo.sapiens.neanderthalensis
63 Out:    YES
64
65 Name:   hier-prefix5
66 Run:    ../obj/ucw/str-fix-t P homo.sapiens.neanderthalensis homo.sapiens.neanderthalensis.
67 Out:    NO
68
69 Name:   hier-prefix6
70 Run:    ../obj/ucw/str-fix-t P homo.sapiens.neanderthalensis ""
71 Out:    YES
72
73 Name:   hier-suffix1
74 Run:    ../obj/ucw/str-fix-t S homo.sapiens.neanderthalensis ensis
75 Out:    NO
76
77 Name:   hier-suffix2
78 Run:    ../obj/ucw/str-fix-t S homo.sapiens.neanderthalensis sapiens.neanderthalensis
79 Out:    YES
80
81 Name:   hier-suffix3
82 Run:    ../obj/ucw/str-fix-t S homo.sapiens.neanderthalensis .sapiens.neanderthalensis
83 Out:    YES
84
85 Name:   hier-suffix4
86 Run:    ../obj/ucw/str-fix-t P homo.sapiens.neanderthalensis homo.sapiens.neanderthalensis
87 Out:    YES
88
89 Name:   hier-suffix5
90 Run:    ../obj/ucw/str-fix-t P homo.sapiens.neanderthalensis .homo.sapiens.neanderthalensis
91 Out:    NO
92
93 Name:   hier-suffix6
94 Run:    ../obj/ucw/str-fix-t S homo.sapiens.neanderthalensis ""
95 Out:    YES
96
97 Name:   hier-suffix7
98 Run:    ../obj/ucw/str-fix-t S homo.sapiens.neanderthalensis ecce.homo.sapiens.neanderthalensis
99 Out:    NO