Fix assignment operators test
This commit is contained in:
parent
4e841146b8
commit
7616895eb3
@ -125,10 +125,10 @@ int main(int argc, char** argv)
|
|||||||
cChunkBuffer buffer;
|
cChunkBuffer buffer;
|
||||||
buffer.SetBlock(0,0,0,0x42);
|
buffer.SetBlock(0,0,0,0x42);
|
||||||
cChunkBuffer copy;
|
cChunkBuffer copy;
|
||||||
copy = buffer;
|
copy = std::move(buffer);
|
||||||
|
testassert(copy.GetBlock(0,0,0) == 0x42);
|
||||||
|
copy = std::move(copy);
|
||||||
testassert(copy.GetBlock(0,0,0) == 0x42);
|
testassert(copy.GetBlock(0,0,0) == 0x42);
|
||||||
copy = copy;
|
|
||||||
testassert(copy.GetBlock(0,0,0) == 0x42)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user