aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/unit/testSparseState.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/testSparseState.cxx')
-rw-r--r--test/unit/testSparseState.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/testSparseState.cxx b/test/unit/testSparseState.cxx
index f16f829d4..74f1032b2 100644
--- a/test/unit/testSparseState.cxx
+++ b/test/unit/testSparseState.cxx
@@ -95,6 +95,13 @@ TEST_F(SparseStateTest, ReplaceLast) {
EXPECT_EQ(32, pss->ValueAt(3));
}
+TEST_F(SparseStateTest, CheckOnlyChangeAppended) {
+ pss->Set(0, 30);
+ pss->Set(2, 31);
+ pss->Set(3, 31);
+ EXPECT_EQ(2u, pss->size());
+}
+
class SparseStateStringTest : public ::testing::Test {
protected:
virtual void SetUp() {