blob: 21c743a189349b7adeb32bbcc08bda763432eece (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
}
|