stubs4.red 502 B

1234567891011121314151617181920212223242526
  1. % STUBS4.RED - Stubs to support more automatic testing from TEST4 and on
  2. procedure SpaceD(M);
  3. <<Prin2 " ";
  4. Prin2t M>>;
  5. procedure DasheD(M);
  6. <<Terpri();
  7. Prin2 "---------- ";
  8. Prin2T M>>;
  9. procedure DotteD(M);
  10. <<Terpri();
  11. Prin2 " ....... ";
  12. Prin2T M>>;
  13. Procedure ShouldBe(M,v,e);
  14. % test if V eq e;
  15. <<Prin2 " ....... For ";Prin2 M; Prin2 '" ";
  16. Prin1 v; Prin2 '" should be "; Prin1 e;
  17. if v eq e then Prin2T '" [OK ]"
  18. else Prin2T '" [BAD] *******">>;
  19. End;