summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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;
}