mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest
This commit is contained in:
parent
d5151f0167
commit
7e5186a20e
1 changed files with 13 additions and 0 deletions
|
|
@ -37,6 +37,19 @@ CONSOLE_APP_MAIN
|
|||
ASSERT(*m.Map(i, 1) == test[i]);
|
||||
}
|
||||
|
||||
{
|
||||
FileMapping m;
|
||||
m.Open(path, FileStream::READWRITE);
|
||||
byte *h = m.Map();
|
||||
h[3] = 'X';
|
||||
h[4] = 'Y';
|
||||
}
|
||||
|
||||
test.Set(3, 'X');
|
||||
test.Set(4, 'Y');
|
||||
|
||||
ASSERT(LoadFile(path) == test);
|
||||
|
||||
DeleteFile(path);
|
||||
|
||||
LOG("============ OK");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue