mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
@@ -30,12 +30,12 @@ fn (mut w Writ) write(buf []byte) ?int {
|
||||
}
|
||||
|
||||
fn test_copy() {
|
||||
src := Buf{
|
||||
mut src := Buf{
|
||||
bytes: 'abcdefghij'.repeat(10).bytes()
|
||||
}
|
||||
mut dst := Writ{
|
||||
bytes: []byte{}
|
||||
}
|
||||
io.cp(src, mut dst) or { assert false }
|
||||
io.cp(mut src, mut dst) or { assert false }
|
||||
assert dst.bytes == src.bytes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user