mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-11-03 20:54:07 +01:00
add assert to read
This commit is contained in:
parent
dfa2604820
commit
d4f0b731a5
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user