summaryrefslogtreecommitdiffstats
path: root/vendor/textalk/websocket/tests/scripts/send-receive-65536.json
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/textalk/websocket/tests/scripts/send-receive-65536.json')
-rw-r--r--vendor/textalk/websocket/tests/scripts/send-receive-65536.json113
1 files changed, 113 insertions, 0 deletions
diff --git a/vendor/textalk/websocket/tests/scripts/send-receive-65536.json b/vendor/textalk/websocket/tests/scripts/send-receive-65536.json
new file mode 100644
index 0000000..67604b5
--- /dev/null
+++ b/vendor/textalk/websocket/tests/scripts/send-receive-65536.json
@@ -0,0 +1,113 @@
+[
+ {
+ "function": "get_resource_type",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": "stream"
+ },
+ {
+ "function": "fwrite",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": 65546
+ },
+ {
+ "function": "get_resource_type",
+ "params": [
+ "@mock-stream"
+ ],
+ "return": "stream"
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 2
+ ],
+ "return-op": "chr-array",
+ "return": [129, 127]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 8
+ ],
+ "return-op": "chr-array",
+ "return": [0, 0, 0, 0, 0, 1, 0, 0]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 65536
+ ],
+ "return-op": "file",
+ "return": ["payload.65536.txt", 0, 16374]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 49162
+ ],
+ "return-op": "file",
+ "return": ["payload.65536.txt", 16374, 8192]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 40970
+ ],
+ "return-op": "file",
+ "return": ["payload.65536.txt", 24566, 8192]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 32778
+ ],
+ "return-op": "file",
+ "return": ["payload.65536.txt", 32758, 8192]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 24586
+ ],
+ "return-op": "file",
+ "return": ["payload.65536.txt", 40950, 8192]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 16394
+ ],
+ "return-op": "file",
+ "return": ["payload.65536.txt", 49142, 8192]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 8202
+ ],
+ "return-op": "file",
+ "return": ["payload.65536.txt", 57334, 8192]
+ },
+ {
+ "function": "fread",
+ "params": [
+ "@mock-stream",
+ 10
+ ],
+ "return-op": "file",
+ "return": ["payload.65536.txt", 65526, 10]
+ }
+] \ No newline at end of file