From 4f746ce7299e39551f639e23c0e0b7828f06a08c Mon Sep 17 00:00:00 2001 From: Krzysztof Szenk Date: Sun, 11 Jun 2017 12:47:17 +0200 Subject: [PATCH] Added a test case for BoolVector::set Also thought, that it'd be nice to cover bit setting from 1 to 0. --- src/Magnum/Math/Test/BoolVectorTest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Magnum/Math/Test/BoolVectorTest.cpp b/src/Magnum/Math/Test/BoolVectorTest.cpp index d03fe0053..2f1ce344a 100644 --- a/src/Magnum/Math/Test/BoolVectorTest.cpp +++ b/src/Magnum/Math/Test/BoolVectorTest.cpp @@ -169,6 +169,9 @@ void BoolVectorTest::data() { d.set(15, true); CORRADE_VERIFY(d[15]); CORRADE_COMPARE(d, BoolVector19(0x08, 0x83, 0x04)); + d.set(15, false); + CORRADE_VERIFY(!d[15]); + CORRADE_COMPARE(d, BoolVector19(0x08, 0x03, 0x04)); } void BoolVectorTest::compare() {