summaryrefslogtreecommitdiffstats
path: root/vendor/textalk/websocket/tests/scripts/send-receive.json
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/textalk/websocket/tests/scripts/send-receive.json')
-rw-r--r--vendor/textalk/websocket/tests/scripts/send-receive.json50
1 files changed, 50 insertions, 0 deletions
diff --git a/vendor/textalk/websocket/tests/scripts/send-receive.json b/vendor/textalk/websocket/tests/scripts/send-receive.json
new file mode 100644
index 0000000..7ad0350
--- /dev/null
+++ b/vendor/textalk/websocket/tests/scripts/send-receive.json
@@ -0,0 +1,50 @@
+[
+ {
+ "function": "get_resource_type",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": "stream"
+ },
+ {
+ "function": "fwrite",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": 23
+ },
+ {
+ "function": "get_resource_type",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": "stream"
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 2
+ ],
+ "return-op": "chr-array",
+ "return": [129, 147]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 4
+ ],
+ "return-op": "chr-array",
+ "return": [33, 111, 149, 174]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 19
+ ],
+ "return-op": "chr-array",
+ "return": [115, 10, 246, 203, 72, 25, 252, 192, 70, 79, 244, 142, 76, 10, 230, 221, 64, 8, 240]
+ }
+] \ No newline at end of file