File: check.t

package info (click to toggle)
rs 20200313-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 116 kB
  • sloc: ansic: 548; makefile: 73; sh: 8
file content (172 lines) | stat: -rw-r--r-- 2,427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# $MirOS: src/usr.bin/rs/check.t,v 1.7 2020/03/13 00:41:48 tg Exp $

name: debian-650029-e
description:
	Check basic output
stdin:
	1
	a wide column
	2
	3
	4
	a
	another wide column
	b
	c
	d
arguments: !-e!0!5!
expected-stdout:
	1                    a wide column        2                    3                    4
	a                    another wide column  b                    c                    d
---
name: debian-650029-ze
description:
	Check output with -z
stdin:
	1
	a wide column
	2
	3
	4
	a
	another wide column
	b
	c
	d
arguments: !-ze!0!5!
expected-stdout:
	1  a wide column        2  3  4
	a  another wide column  b  c  d
---
name: debian-668306
description:
	Check it doesn’t immediately segfault
stdin:
	1
	2
	3
	4
	5
	6
	7
	8
	9
arguments: !3!3!
expected-stdout:
	1  2  3
	4  5  6
	7  8  9
---
name: debian-706717-r1.10
description:
	Handle empty fields
stdin:
	0	0
		0
arguments: !-c!0!2!
expected-stdout:
	0  0
	   0
---
name: debian-706717-r1.11-1
description:
	Handle empty last fields
stdin:
	0	0
	0
arguments: !-c!0!2!
expected-stdout:
	0  0
	0  
---
name: debian-706717-r1.11-2
description:
	Handle empty last fields
stdin:
	0	0
	0	
arguments: !-c!0!2!
expected-stdout:
	0  0
	0  
---
name: empty-last-line-1
description:
	Basis for the next test
stdin:
	a b c d
arguments: !0!2!
expected-stdout:
	a  b
	c  d
---
name: empty-last-line-2
description:
	There should be no empty line just due to a trailing space
stdin:
	a b c d 
arguments: !0!2!
expected-stdout:
	a  b
	c  d
---
name: unicode-1
description:
	Fun with UTF-8
stdin:
	mäh miau a Kuh 猫 b ❣❧ マヌル c
env-setup: !LC_ALL=C.UTF-8!
arguments: !0!3!
expected-stdout:
	mäh     miau    a
	Kuh     猫      b
	❣❧      マヌル  c
---
name: unicode-2
description:
	Fun with UTF-8
stdin:
	mäh miau a Kuh 猫 b ❣❧ マヌル c
env-setup: !LC_ALL=C.UTF-8!
arguments: !-z!0!3!
expected-stdout:
	mäh  miau    a
	Kuh  猫      b
	❣❧   マヌル  c
---
name: unicode-3-utf8
description:
	Invalids
category: !os:mirbsd
stdin:
	 b c 
env-setup: !LC_ALL=C.UTF-8!
arguments: !-z!0!2!
expected-stdout:
	?  b
	c  ??
---
name: unicode-3-optu8
description:
	Invalids
category: os:mirbsd
stdin:
	 b c 
env-setup: !LC_ALL=C.UTF-8!
arguments: !-z!0!2!
expected-stdout:
	  b
	c  
---
name: unicode-4
description:
	ASCII
category: !os:mirbsd
stdin:
	ä b c d
env-setup: !LC_ALL=C!
arguments: !-z!0!2!
expected-stdout:
	ä  b
	c   d
---