mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Add an optional offset to File.readBytes().
This commit is contained in:
4
test/io/file/read_bytes_from_count_negative.wren
Normal file
4
test/io/file/read_bytes_from_count_negative.wren
Normal file
@ -0,0 +1,4 @@
|
||||
import "io" for File
|
||||
|
||||
var file = File.open("test/io/file/file.txt")
|
||||
file.readBytes(-1, 0) // expect runtime error: Count cannot be negative.
|
||||
Reference in New Issue
Block a user