mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-08-25 06:31:43 +02:00
fix C test
This commit is contained in:
parent
0b5136f14c
commit
8f570d2fd9
@ -86,7 +86,7 @@ int test_write(const char* file_name, const back_end_t backend) {
|
|||||||
assert (rc == TREXIO_SUCCESS);
|
assert (rc == TREXIO_SUCCESS);
|
||||||
|
|
||||||
// open file again in 'append' mode
|
// open file again in 'append' mode
|
||||||
file = trexio_open(file_name, 'a', TREXIO_HDF5);
|
file = trexio_open(file_name, 'a', backend);
|
||||||
assert (file != NULL);
|
assert (file != NULL);
|
||||||
|
|
||||||
// read the nucleus_num from existing file
|
// read the nucleus_num from existing file
|
||||||
@ -97,7 +97,7 @@ int test_write(const char* file_name, const back_end_t backend) {
|
|||||||
// overwrite the nucleus_coord
|
// overwrite the nucleus_coord
|
||||||
coord[0] = 666.666;
|
coord[0] = 666.666;
|
||||||
rc = trexio_write_nucleus_coord(file,coord);
|
rc = trexio_write_nucleus_coord(file,coord);
|
||||||
assert (rc == TREXIO_SUCCESS);
|
assert (rc == TREXIO_DSET_ALREADY_EXISTS);
|
||||||
|
|
||||||
// close current session
|
// close current session
|
||||||
rc = trexio_close(file);
|
rc = trexio_close(file);
|
||||||
|
Loading…
Reference in New Issue
Block a user