1
0
Fork 0

Add tests for assignment operator

This commit is contained in:
worktycho 2014-05-17 13:59:31 +01:00
parent 710656f84f
commit a7a811af3a
1 changed files with 11 additions and 0 deletions

View File

@ -120,5 +120,16 @@ int main(int argc, char** argv)
}
{
// Operator =
cChunkBuffer buffer;
buffer.SetBlock(0,0,0,0x42);
cChunkBuffer copy;
copy = buffer;
testassert(copy.GetBlock(0,0,0) == 0x42);
copy = copy;
testassert(copy.GetBlock(0,0,0) == 0x42)
}
return 0;
}