diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-08-13 12:27:15 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-08-13 12:27:15 -0700 |
commit | 63b8b18ef7594fd0bba8e936c40697c68d1376d9 (patch) | |
tree | 8c3ccc6e5228eb5a75fa43ac789a08de7652ee0d /061read-byte.subx | |
parent | 64e8faba379a43a8768bb4dd81c49ec328bf917b (diff) | |
download | mu-63b8b18ef7594fd0bba8e936c40697c68d1376d9.tar.gz |
standardize test input/output/error streams
Diffstat (limited to '061read-byte.subx')
-rw-r--r-- | 061read-byte.subx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/061read-byte.subx b/061read-byte.subx index 99e2babe..5b6aa90f 100644 --- a/061read-byte.subx +++ b/061read-byte.subx @@ -290,4 +290,42 @@ _test-buffered-file: # data 00 00 00 00 00 00 # 6 bytes +_test-input-stream: + # current write index + 0/imm32 + # current read index + 0/imm32 + # length + 0x100/imm32 # 256 bytes + # data (16 lines x 16 bytes/line) + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + +# a test buffered file for _test-input-stream +_test-input-buffered-file: + # file descriptor or (address stream) + _test-input-stream/imm32 + # current write index + 0/imm32 + # current read index + 0/imm32 + # length + 6/imm32 + # data + 00 00 00 00 00 00 # 6 bytes + # . . vim:nowrap:textwidth=0 |