Files
wren/test/io/file/read_bytes_from_offset_negative.wren
T

5 lines
142 B
Plaintext
Raw Normal View History

2015-12-30 08:13:19 -08:00
import "io" for File
var file = File.open("test/io/file/file.txt")
file.readBytes(1, -1) // expect runtime error: Offset cannot be negative.