1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-07-22 18:57:39 +02:00

add assert to read

This commit is contained in:
q-posev 2021-06-21 09:28:37 +02:00
parent dfa2604820
commit d4f0b731a5
2 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ static int test_read_num (const char* file_name, const back_end_t backend) {
// read numerical attribute from the file
rc = trexio_read_nucleus_num(file, &num);
assert (rc == TREXIO_SUCCESS);
assert (num == 12);
// close current session
rc = trexio_close(file);

View File

@ -87,6 +87,7 @@ static int test_read_num (const char* file_name, const back_end_t backend) {
// read numerical attribute from the file
rc = trexio_read_nucleus_num(file, &num);
assert (rc == TREXIO_SUCCESS);
assert (num == 12);
// close current session
rc = trexio_close(file);