fpc/tests/webtbs/tw2031.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

22 lines
363 B
ObjectPascal

program settest;
const
size = 31;
var
testset : set of 0..size;
i : integer;
begin
testset := [];
testset := testset + [0,1,2,3,4];
if testset <> [0,1,2,3,4] then
begin
writeln('add wrong');
halt(1);
end;
testset := testset - [2];
if testset <> [0,1,3,4] then
begin
writeln('sub wrong');
halt(1);
end;
end.