home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-08-18 | 371 b | 16 lines | [TEXT/R*ch] |
- (* test/auxil.sml -- Auxiliary functions for test cases *)
-
- infix 1 seq
- fun e1 seq e2 = e2;
- fun check b = if b then "OK" else "WRONG";
- fun check' f = (if f () then "OK" else "WRONG") handle _ => "EXN";
-
- fun range (from, to) p =
- let open Int
- in
- (from > to) orelse (p from) andalso (range (from+1, to) p)
- end;
-
- fun checkrange bounds = check o range bounds;
-
-