2 imports Common "~~/src/Tools/Spec_Check/Spec_Check"
9 "ALL x. (let val c = (" ^ str ^ ") in Codec.decode c (Codec.encode c x) = Codec.Success x end)"
11 "ALL x. (let val c = (" ^ str ^ ") in Codec.decode c (YXML.parse (YXML.string_of (Codec.encode c x))) = Codec.Success x end)"
22 check_for "Codec.unit";
23 check_for "Codec.int";
24 check_for "Codec.bool";
25 check_for "Codec.string";
26 check_for "Codec.tuple Codec.int Codec.int";
27 check_for "Codec.tuple Codec.string Codec.unit";
28 check_for "Codec.list Codec.unit";
29 check_for "Codec.list Codec.int";
30 check_for "Codec.list Codec.string";
31 check_for "Codec.list (Codec.list Codec.string)";
32 check_for "Codec.list (Codec.tuple Codec.int Codec.int)";
33 check_for "Codec.tuple Codec.int (Codec.list Codec.int)";
34 check_for "Codec.option Codec.int";
35 check_for "Codec.option (Codec.list Codec.int)";
36 check_for "Codec.list (Codec.option (Codec.int))";
37 check_for "Codec.term";
38 check_for "Codec.typ";