1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/io/io_cp_test.v
2022-05-13 06:56:21 +03:00

14 lines
218 B
V

import io
import os
fn test_cp() ? {
mut f := os.open(@FILE) or { panic(err) }
defer {
f.close()
}
mut r := io.new_buffered_reader(reader: f)
mut stdout := os.stdout()
io.cp(mut r, mut stdout)?
assert true
}