6 OUnit.assert_equal ~printer:Std.dump x y
8 module A = AbcIn.Make(struct
16 open_in_bin @@ Printf.sprintf "%s.abc" name in
17 A.of_bytes @@ BytesIn.of_channel ch
26 ("asm module test" >::: [
29 (fun () -> ok [] cpool.int);
31 (fun () -> ok [] cpool.uint);
33 (fun () -> ok [] cpool.double);
35 (fun () -> ok [""; "Hello,world!!";"print"] cpool.string);
39 match cpool.namespace with
43 assert_failure "list size is over");*)
47 ok [] cpool.namespace_set);
50 assert_equal [QName (1,1);QName (1,3)]
53 "method signature" >::
55 match abc.method_info with
62 assert_failure "over size");
66 "class and instance size has same size" >::
68 ok (List.length abc.instances) (List.length abc.classes));
77 match abc.scripts with
82 assert_failure "error");
85 match abc.method_bodies with
90 ok 0 m.init_scope_depth;
91 ok 1 m.max_scope_depth;
93 ok [] m.method_traits;
97 assert_failure "error");
98 ]) +> run_test_tt_main