Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,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(mut r, mut stdout)!
|
||||
assert true
|
||||
}
|
||||
Reference in new issue
Block a user