blob: 46d484a2f1e2522a567ce2401a65534655823e60 (
plain)
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
|
{ Testing smallset + normset }
{ with respect to normset + smallset }
type
charset=set of char;
var
tr,tr2 : charset;
procedure test(const k:charset);
begin
tr:=[#7..#10]+k;
tr2:=k+[#7..#10];
if (tr<>tr2) then
begin
Writeln('Bug in set handling');
halt(1);
end;
end;
begin
Test([#20..#32]);
if not(#32 in tr) or ([#33..#255]*tr <> []) or
(tr<>[#7..#10,#20..#32]) or
(tr<>tr2) then
begin
Writeln('Bug in set handling');
halt(1);
end;
end.
|