tests: eina: make sure we always check on eina_matrixsparse_data_idx_get return

It has been checked in all other places, but has been forgotten in these
two.

CID: 1401081

Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D11960
This commit is contained in:
Stefan Schmidt 2020-06-09 15:21:28 +02:00
parent e9e8368823
commit 09d89a059c
1 changed files with 2 additions and 0 deletions

View File

@ -145,9 +145,11 @@ EFL_START_TEST(eina_test_simple)
fail_if(row != 3 || col != 5);
test1 = eina_matrixsparse_data_idx_get(matrix, 4, 3);
fail_if(test1 == NULL);
fail_if(*test1 != data[4][3]);
test1 = eina_matrixsparse_data_idx_get(matrix, 1, 3);
fail_if(test1 == NULL);
fail_if(*test1 != data[1][3]);
/* data changing */