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

5 lines
141 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, 0) // expect runtime error: Count cannot be negative.