boolean.tst 709 B

1234567891011121314151617181920212223242526272829303132333435
  1. % Test series for the boolean package.
  2. boolean true;
  3. boolean false;
  4. boolean (true and false);
  5. boolean (true or false);
  6. boolean (x and true);
  7. boolean (x and false);
  8. boolean (x or true);
  9. boolean (x or false);
  10. boolean (not(x and y));
  11. boolean (not(x or y));
  12. boolean (x or y or(x and y));
  13. boolean (x and y and (x or y));
  14. boolean (x or (not x));
  15. boolean (x and (not x));
  16. boolean (x and y or not x);
  17. boolean (a and b implies c and d);
  18. boolean (a and b implies c and d, and);
  19. boolean (a or b implies c or d);
  20. boolean (a or b implies c or d, and,full);
  21. operator >;
  22. fm:=boolean(x>v or not (u>v));
  23. v:=10;
  24. testbool fm;
  25. x:=3;
  26. testbool fm;
  27. clear x;
  28. x:=17;
  29. testbool fm;
  30. clear v,x;
  31. end;