mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-08-25 06:31:43 +02: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
|
// read numerical attribute from the file
|
||||||
rc = trexio_read_nucleus_num(file, &num);
|
rc = trexio_read_nucleus_num(file, &num);
|
||||||
assert (rc == TREXIO_SUCCESS);
|
assert (rc == TREXIO_SUCCESS);
|
||||||
|
assert (num == 12);
|
||||||
|
|
||||||
// close current session
|
// close current session
|
||||||
rc = trexio_close(file);
|
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
|
// read numerical attribute from the file
|
||||||
rc = trexio_read_nucleus_num(file, &num);
|
rc = trexio_read_nucleus_num(file, &num);
|
||||||
assert (rc == TREXIO_SUCCESS);
|
assert (rc == TREXIO_SUCCESS);
|
||||||
|
assert (num == 12);
|
||||||
|
|
||||||
// close current session
|
// close current session
|
||||||
rc = trexio_close(file);
|
rc = trexio_close(file);
|
||||||
|
Loading…
Reference in New Issue
Block a user