summaryrefslogtreecommitdiffstats
path: root/tests/ChunkBuffer
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-05-17 14:59:31 +0200
committerworktycho <work.tycho@gmail.com>2014-05-17 14:59:31 +0200
commita7a811af3a2b7d4425abca2c7b4d733ab75449f6 (patch)
tree8a8f3cd4875a39f72df3419936e1bb61a7645165 /tests/ChunkBuffer
parentRewrote array copies test (diff)
downloadcuberite-a7a811af3a2b7d4425abca2c7b4d733ab75449f6.tar
cuberite-a7a811af3a2b7d4425abca2c7b4d733ab75449f6.tar.gz
cuberite-a7a811af3a2b7d4425abca2c7b4d733ab75449f6.tar.bz2
cuberite-a7a811af3a2b7d4425abca2c7b4d733ab75449f6.tar.lz
cuberite-a7a811af3a2b7d4425abca2c7b4d733ab75449f6.tar.xz
cuberite-a7a811af3a2b7d4425abca2c7b4d733ab75449f6.tar.zst
cuberite-a7a811af3a2b7d4425abca2c7b4d733ab75449f6.zip
Diffstat (limited to 'tests/ChunkBuffer')
-rw-r--r--tests/ChunkBuffer/Coordinates.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ChunkBuffer/Coordinates.cpp b/tests/ChunkBuffer/Coordinates.cpp
index b9861df23..d4fca1e50 100644
--- a/tests/ChunkBuffer/Coordinates.cpp
+++ b/tests/ChunkBuffer/Coordinates.cpp
@@ -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;
}