From 187b15ddd6f12efc01a6ac54e6eeff8a08be8fe9 Mon Sep 17 00:00:00 2001 From: q-posev Date: Wed, 22 Sep 2021 11:41:29 +0200 Subject: [PATCH] fix io_num tests --- tests/io_num_hdf5.c | 2 +- tests/io_num_text.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/io_num_hdf5.c b/tests/io_num_hdf5.c index f6f4a7d..8cac31c 100644 --- a/tests/io_num_hdf5.c +++ b/tests/io_num_hdf5.c @@ -29,7 +29,7 @@ static int test_write_num (const char* file_name, const back_end_t backend) { // attempt to write 0 as dimensioning variable in an empty file; should FAIL and return TREXIO_INVALID_ARG_2 rc = trexio_write_mo_num(file, 0); - assert (rc == TREXIO_INVALID_ARG_2); + assert (rc == TREXIO_INVALID_NUM); // write numerical attribute ao_cartesian as 0 rc = trexio_write_ao_cartesian(file, 0); diff --git a/tests/io_num_text.c b/tests/io_num_text.c index ca4d9ba..9f779cd 100644 --- a/tests/io_num_text.c +++ b/tests/io_num_text.c @@ -29,7 +29,7 @@ static int test_write_num (const char* file_name, const back_end_t backend) { // attempt to write 0 as dimensioning variable in an empty file; should FAIL and return TREXIO_INVALID_ARG_2 rc = trexio_write_mo_num(file, 0); - assert (rc == TREXIO_INVALID_ARG_2); + assert (rc == TREXIO_INVALID_NUM); // write numerical attribute ao_cartesian as 0 rc = trexio_write_ao_cartesian(file, 0);