Files
wren/test/io/file/read_bytes_from_count_negative.wren
2015-12-30 08:13:19 -08:00

5 lines
141 B
Plaintext

import "io" for File
var file = File.open("test/io/file/file.txt")
file.readBytes(-1, 0) // expect runtime error: Count cannot be negative.