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

5 lines
138 B
Plaintext
Raw Normal View History

2015-09-30 21:13:36 -07:00
import "io" for File
var file = File.open("test/io/file/file.txt")
file.readBytes(-1) // expect runtime error: Count cannot be negative.