1
0

Add tests for assignment operator

This commit is contained in:
worktycho 2014-05-17 13:59:31 +01:00
parent 710656f84f
commit a7a811af3a

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;
}