aboutsummaryrefslogtreecommitdiff
path: root/test/data
diff options
context:
space:
mode:
Diffstat (limited to 'test/data')
-rw-r--r--test/data/callbacks.cborbin0 -> 79 bytes
-rw-r--r--test/data/callbacks.diag1
-rw-r--r--test/data/pretty.cbor3
-rw-r--r--test/data/pretty.diag1
4 files changed, 5 insertions, 0 deletions
diff --git a/test/data/callbacks.cbor b/test/data/callbacks.cbor
new file mode 100644
index 000000000000..6903268bc8d7
--- /dev/null
+++ b/test/data/callbacks.cbor
Binary files differ
diff --git a/test/data/callbacks.diag b/test/data/callbacks.diag
new file mode 100644
index 000000000000..0dd611fa968b
--- /dev/null
+++ b/test/data/callbacks.diag
@@ -0,0 +1 @@
+[1, 257, 67000, 6700067000, -1, -257, -67000, -6700067000, (_ h'01', h'02'), (_ "a", "b"), [_], {"a":"b"}, 0({_}), 1.0, 100000.0, 1.0e+300 , null, undefined, true]
diff --git a/test/data/pretty.cbor b/test/data/pretty.cbor
new file mode 100644
index 000000000000..e580dcd648ff
--- /dev/null
+++ b/test/data/pretty.cbor
@@ -0,0 +1,3 @@
+*** can't parse 101
+0x5B, 0x31, 0x2C, 0x20, 0x2D, 0x31, 0x2C, 0x20, 0x28, 0x5F, 0x20, 0x68, 0x27, 0x30, 0x31, 0x27, 0x2C, 0x20, 0x68, 0x27, 0x30, 0x32, 0x27, 0x29, 0x2C, 0x20, 0x28, 0x5F, 0x20, 0x22, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x22, 0x2C, 0x20, 0x22, 0x62, 0x22, 0x29, 0x2C, 0x20, 0x5B, 0x5F, 0x5D, 0x2C, 0x20, 0x7B, 0x22, 0x61, 0x62, 0x63, 0x22, 0x3A, 0x22, 0x62, 0x61, 0x22, 0x7D, 0x2C, 0x20, 0x30, 0x28, 0x7B, 0x5F, 0x7D, 0x29, 0x2C, 0x20, 0x33, 0x2E, 0x31, 0x34, 0x2C, 0x20, 0x6E, 0x75, 0x6C, 0x6C, 0x2C, 0x20, 0x75, 0x6E, 0x64, 0x65, 0x66, 0x69, 0x6E, 0x65, 0x64, 0x2C, 0x20, 0x74, 0x72, 0x75, 0x65, 0x5D, 0x0A
+*** Expected [ \t\n\r] at line 2, column 1 (byte 5) after
diff --git a/test/data/pretty.diag b/test/data/pretty.diag
new file mode 100644
index 000000000000..8be1b0cc2a42
--- /dev/null
+++ b/test/data/pretty.diag
@@ -0,0 +1 @@
+[1, -1, (_ h'01', h'02'), (_ "abcdef", "b"), [_], {"abc":"ba"}, 0({_}), 3.14, null, undefined, true]