* check that adding sets is commutative

This commit is contained in:
pierre 2002-11-14 17:23:55 +00:00
parent 7d1f5b883c
commit 8c540e0bd6

29
tests/tbs/tb0417.pp Normal file
View File

@ -0,0 +1,29 @@
{ 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];
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.