Files
wren/test/io/file/write_bytes_from_offset_negative.wren
Bob Nystrom 8e90e3577b More file IO!
Can now create, delete, and write to files.
2016-02-20 09:23:42 -08:00

10 lines
187 B
Plaintext

import "io" for File
System.print(Fiber.new {
File.create("file.temp") {|file|
file.writeBytes("", -1)
}
}.try()) // expect: Offset cannot be negative.
File.delete("file.temp")