mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
[feat] add test tmp files to gitignore
This commit is contained in:
committed by
Christoffer Lerno
parent
772b20c26b
commit
b7ffa3b17c
@@ -57,15 +57,15 @@ fn void read_write_any()
|
||||
data.total = 0xA55A;
|
||||
data.hello = 0xCC;
|
||||
|
||||
File file = file::open("__file_read_write_any_test_file", "wb")!!;
|
||||
File file = file::open("tmp/__file_read_write_any_test_file", "wb")!!;
|
||||
|
||||
io::write_any(&file, &data)!!;
|
||||
file.flush()!!;
|
||||
file.close()!!;
|
||||
|
||||
file = file::open("__file_read_write_any_test_file", "rb")!!;
|
||||
Data rdata;
|
||||
io::read_any(&file, &rdata)!!;
|
||||
file = file::open("tmp/__file_read_write_any_test_file", "rb")!!;
|
||||
Data rdata;
|
||||
io::read_any(&file, &rdata)!!;
|
||||
|
||||
file.close()!!;
|
||||
|
||||
@@ -91,4 +91,4 @@ fn void read_write_any()
|
||||
assert(rdata.hello == data.hello);
|
||||
assert(rdata.hallo == data.hallo);
|
||||
assert(rdata.byebye == data.byebye);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user