diff options
author | Li Jin <dragon-fly@qq.com> | 2024-10-19 00:35:11 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2024-10-19 00:35:11 +0800 |
commit | 1334c0ae67fdf4cb1377e0e7a3ef291f5cf694c0 (patch) | |
tree | 8bd3fbeb396fd2fce6e5b34c3ee10f4923feca72 /spec/outputs/codes_from_doc.lua | |
parent | 05da3cbfa3689e6c229c41156d0dd08ab554cd77 (diff) | |
download | yuescript-1334c0ae67fdf4cb1377e0e7a3ef291f5cf694c0.tar.gz yuescript-1334c0ae67fdf4cb1377e0e7a3ef291f5cf694c0.tar.bz2 yuescript-1334c0ae67fdf4cb1377e0e7a3ef291f5cf694c0.zip |
Fixed issue #174.
Diffstat (limited to 'spec/outputs/codes_from_doc.lua')
-rw-r--r-- | spec/outputs/codes_from_doc.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua index 4073056..e2bba8e 100644 --- a/spec/outputs/codes_from_doc.lua +++ b/spec/outputs/codes_from_doc.lua | |||
@@ -585,6 +585,14 @@ do | |||
585 | end | 585 | end |
586 | end | 586 | end |
587 | print("OK") | 587 | print("OK") |
588 | repeat | ||
589 | local byte = stream:read_one() | ||
590 | if byte then | ||
591 | print(byte) | ||
592 | else | ||
593 | break | ||
594 | end | ||
595 | until false | ||
588 | local list = { | 596 | local list = { |
589 | 1, | 597 | 1, |
590 | 2, | 598 | 2, |
@@ -2583,6 +2591,14 @@ do | |||
2583 | end | 2591 | end |
2584 | end | 2592 | end |
2585 | print("OK") | 2593 | print("OK") |
2594 | repeat | ||
2595 | local byte = stream:read_one() | ||
2596 | if byte then | ||
2597 | print(byte) | ||
2598 | else | ||
2599 | break | ||
2600 | end | ||
2601 | until false | ||
2586 | local list = { | 2602 | local list = { |
2587 | 1, | 2603 | 1, |
2588 | 2, | 2604 | 2, |