summaryrefslogtreecommitdiff
path: root/ocaml/test/old/test_jam_debug.ml
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-10-06 23:18:59 +0700
committerpolwex <polwex@sortug.com>2025-10-06 23:18:59 +0700
commit5de3f7a3ad7b0cf63b4a6cbddfc1e26359dea161 (patch)
treeb55b2258123149bed40bd89bbaa58e7da54f3a26 /ocaml/test/old/test_jam_debug.ml
parentfdab65f6dac4ba85ed4749f61970660d1132d453 (diff)
cleaned up tests
Diffstat (limited to 'ocaml/test/old/test_jam_debug.ml')
-rw-r--r--ocaml/test/old/test_jam_debug.ml20
1 files changed, 20 insertions, 0 deletions
diff --git a/ocaml/test/old/test_jam_debug.ml b/ocaml/test/old/test_jam_debug.ml
new file mode 100644
index 0000000..cad3ee9
--- /dev/null
+++ b/ocaml/test/old/test_jam_debug.ml
@@ -0,0 +1,20 @@
+open Nock_lib.Noun
+open Nock_lib.Serial
+
+let () =
+ Printf.printf "Testing jam encoding:\n";
+
+ (* Test 0 *)
+ let n0 = atom 0 in
+ let j0 = jam n0 in
+ Printf.printf "jam(0) = %s\n" (bytes_to_hex j0);
+
+ (* Test 1 *)
+ let n1 = atom 1 in
+ let j1 = jam n1 in
+ Printf.printf "jam(1) = %s\n" (bytes_to_hex j1);
+
+ (* Test 2 *)
+ let n2 = atom 2 in
+ let j2 = jam n2 in
+ Printf.printf "jam(2) = %s\n" (bytes_to_hex j2);