* Fix #12410, big thanks to @pmetras for this fix * Add testcase
This commit is contained in:
parent
2cb484cefb
commit
01a62320f0
2 changed files with 14 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ Nice name: Arne
|
|||
fs is: nil
|
||||
|
||||
threw exception
|
||||
_heh_
|
||||
'''
|
||||
nimout: '''
|
||||
I
|
||||
|
|
@ -49,3 +50,15 @@ block tstreams3:
|
|||
for line in s.lines:
|
||||
echo line
|
||||
s.close
|
||||
|
||||
# bug #12410
|
||||
|
||||
var a = newStringStream "hehohihahuhyh"
|
||||
a.readDataStrImpl = nil
|
||||
|
||||
var buffer = "_ooo_"
|
||||
|
||||
doAssert a.readDataStr(buffer, 1..3) == 3
|
||||
|
||||
echo buffer
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue