From 56097a334556e0f5154c4a297fdf8a0380b923dd Mon Sep 17 00:00:00 2001
From: Lukas Cejka <lukas.ostatek@gmail.com>
Date: Mon, 5 Nov 2018 18:06:30 +0100
Subject: [PATCH] Fixed mistake, where I forgot to EXPECT_EQ for an element
 added outside of for loop.

---
 src/UnitTests/Matrices/SparseMatrixTest.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/UnitTests/Matrices/SparseMatrixTest.h b/src/UnitTests/Matrices/SparseMatrixTest.h
index 47385249bb..e78b4f646d 100644
--- a/src/UnitTests/Matrices/SparseMatrixTest.h
+++ b/src/UnitTests/Matrices/SparseMatrixTest.h
@@ -219,6 +219,7 @@ void test_AddElement()
     m.addElement( 0, 4, 1, 0.0 );
     
     EXPECT_EQ( m.getElement( 0, 0 ), 1 );
+    EXPECT_EQ( m.getElement( 0, 4 ), 1 );
     EXPECT_EQ( m.getElement( 1, 0 ), 2 );
     EXPECT_EQ( m.getElement( 2, 0 ), 3 );
     EXPECT_EQ( m.getElement( 3, 0 ), 4 );
-- 
GitLab