1 (*i $Id: test_timezone.ml,v 1.8 2008/02/08 10:36:14 signoles Exp $ i*)
3 Printf.printf "Tests of Time_Zone:\n";;
10 test (current () = UTC) "current () = UTC";;
12 test (current () = Local) "current () = Local";;
13 test (gap UTC (UTC_Plus (-5)) = -5) "gap UTC (UTC_Plus (-5)) = -5";;
16 (gap g6 Local = gap g6 UTC + gap UTC Local)
17 "gap g6 Local = gap g6 UTC + gap UTC Local";;
18 test_exn (lazy (change (UTC_Plus 13))) "change 13";;
19 test_exn (lazy (change (UTC_Plus (-15)))) "change (-15)";;
21 test (from_gmt () = 4) "from_gmt () = 4";;
22 test (to_gmt () = -4) "to_gmt () = -4";;
26 Printf.printf "tests ok : %d; tests ko : %d\n" ok bug;;