tb0428.pp 581 B

12345678910111213141516171819202122232425262728293031323334
  1. { Testing smallset + normset }
  2. { with respect to normset + smallset }
  3. type
  4. charset=set of char;
  5. var
  6. tr,tr2 : charset;
  7. procedure test(const k:charset);
  8. begin
  9. tr:=[#7..#10]+k;
  10. tr2:=k+[#7..#10];
  11. if (tr<>tr2) then
  12. begin
  13. Writeln('Bug in set handling');
  14. halt(1);
  15. end;
  16. end;
  17. begin
  18. Test([#20..#32]);
  19. if not(#32 in tr) or ([#33..#255]*tr <> []) or
  20. (tr<>[#7..#10,#20..#32]) or
  21. (tr<>tr2) then
  22. begin
  23. Writeln('Bug in set handling');
  24. halt(1);
  25. end;
  26. end.