OSDN Git Service

add test case for use_network option
authormzp <mzpppp@gmail.com>
Sun, 20 Dec 2009 02:31:35 +0000 (11:31 +0900)
committermzp <mzpppp@gmail.com>
Sun, 20 Dec 2009 06:28:55 +0000 (15:28 +0900)
link/cmdOptTest.ml

index 52525d5..a5beb0d 100644 (file)
@@ -30,4 +30,8 @@ let _ = begin "cmdOpt.ml" >::: [
     ok "foo.swf" (fun t -> t#output) "-o foo.swf";
     ok "foo.swf" (fun t -> t#output) "--output=foo.swf"
   end;
+  "use network" >:: begin fun () ->
+    ok false (fun t -> t#use_network) "";
+    ok true (fun t -> t#use_network) "--use-network"
+  end
 ] end +> run_test_tt_main