summaryrefslogtreecommitdiffstats
path: root/tests/ChunkBuffer
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-05-17 15:35:08 +0200
committerworktycho <work.tycho@gmail.com>2014-05-17 15:35:08 +0200
commit7616895eb32a90715c3a4c7762c23f0a10605db3 (patch)
tree90ec339c8122ca5980b52df43cd092a3df6be67a /tests/ChunkBuffer
parentFix assignment ops 2 (diff)
downloadcuberite-7616895eb32a90715c3a4c7762c23f0a10605db3.tar
cuberite-7616895eb32a90715c3a4c7762c23f0a10605db3.tar.gz
cuberite-7616895eb32a90715c3a4c7762c23f0a10605db3.tar.bz2
cuberite-7616895eb32a90715c3a4c7762c23f0a10605db3.tar.lz
cuberite-7616895eb32a90715c3a4c7762c23f0a10605db3.tar.xz
cuberite-7616895eb32a90715c3a4c7762c23f0a10605db3.tar.zst
cuberite-7616895eb32a90715c3a4c7762c23f0a10605db3.zip
Diffstat (limited to '')
-rw-r--r--tests/ChunkBuffer/Coordinates.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ChunkBuffer/Coordinates.cpp b/tests/ChunkBuffer/Coordinates.cpp
index d4fca1e50..9eb30fa0a 100644
--- a/tests/ChunkBuffer/Coordinates.cpp
+++ b/tests/ChunkBuffer/Coordinates.cpp
@@ -125,10 +125,10 @@ int main(int argc, char** argv)
cChunkBuffer buffer;
buffer.SetBlock(0,0,0,0x42);
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);
- copy = copy;
- testassert(copy.GetBlock(0,0,0) == 0x42)
}
return 0;