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
4
.gitignore
vendored
4
.gitignore
vendored
@@ -81,3 +81,7 @@ result
|
|||||||
|
|
||||||
# macOS
|
# macOS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# tests
|
||||||
|
/test/tmp/*
|
||||||
|
/test/testrun
|
||||||
|
|||||||
0
test/tmp/.gitkeep
Normal file
0
test/tmp/.gitkeep
Normal file
@@ -57,15 +57,15 @@ fn void read_write_any()
|
|||||||
data.total = 0xA55A;
|
data.total = 0xA55A;
|
||||||
data.hello = 0xCC;
|
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)!!;
|
io::write_any(&file, &data)!!;
|
||||||
file.flush()!!;
|
file.flush()!!;
|
||||||
file.close()!!;
|
file.close()!!;
|
||||||
|
|
||||||
file = file::open("__file_read_write_any_test_file", "rb")!!;
|
file = file::open("tmp/__file_read_write_any_test_file", "rb")!!;
|
||||||
Data rdata;
|
Data rdata;
|
||||||
io::read_any(&file, &rdata)!!;
|
io::read_any(&file, &rdata)!!;
|
||||||
|
|
||||||
file.close()!!;
|
file.close()!!;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user