14 lines
215 B
V
14 lines
215 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(r, mut stdout) ?
|
||
|
assert true
|
||
|
}
|