summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-08-17 23:31:54 (GMT)
committerGitHub <noreply@github.com>2022-08-17 23:31:54 (GMT)
commite6f16c0ec2f643218b1ba527bb92fc1bb7b2e681 (patch)
tree4c8b59017d93c74501fbbddb20282939d70e8289 /test
parent9304f277e8597d39ac60b9d14b309c3462938d1c (diff)
downloadhdf5-e6f16c0ec2f643218b1ba527bb92fc1bb7b2e681.zip
hdf5-e6f16c0ec2f643218b1ba527bb92fc1bb7b2e681.tar.gz
hdf5-e6f16c0ec2f643218b1ba527bb92fc1bb7b2e681.tar.bz2
Fixes codespell issues (#2032)
* Fixes codespell issues * Fixed another typo
Diffstat (limited to 'test')
-rw-r--r--test/enum.c10
-rw-r--r--test/reserved.c2
-rw-r--r--test/th5s.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/test/enum.c b/test/enum.c
index f180f79..d359523 100644
--- a/test/enum.c
+++ b/test/enum.c
@@ -541,7 +541,7 @@ test_value_dsnt_exist(void)
hid_t datatype_id = (-1); /* identifiers */
int val;
- char nam[100];
+ char name[100];
size_t size = 100;
TESTING("for non-existing name and value");
/* Turn off error reporting since we expect failure in this test */
@@ -556,7 +556,7 @@ test_value_dsnt_exist(void)
if (H5Tenum_valueof(datatype_id, "SAX", &val) >= 0)
goto error;
val = 3;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
val = 2;
@@ -571,17 +571,17 @@ test_value_dsnt_exist(void)
/* This call should fail since we did not create a member with value = 3*/
val = 3;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
/* This call should fail since we did not create a member with value = 11*/
val = 11;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
/* This call should fail since we did not create a member with value = 0*/
val = 0;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
/* This call should fail since we do not have SAX name in the type */
diff --git a/test/reserved.c b/test/reserved.c
index 22f1764..fb484c8 100644
--- a/test/reserved.c
+++ b/test/reserved.c
@@ -479,7 +479,7 @@ error:
int
main(void)
{
- /* This test is currently not working properly; it should be revisted
+ /* This test is currently not working properly; it should be revisited
* when we have time.
*
* (Also, we should try to make this test work with all the VFDs)
diff --git a/test/th5s.c b/test/th5s.c
index a9959ce..8a68db7 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -1108,7 +1108,7 @@ test_h5s_zero_dim(void)
dset1 = H5Dopen2(fid1, BASICDATASET1, H5P_DEFAULT);
CHECK(dset1, FAIL, "H5Dopen2");
- /* Get the space of the dataset and querry it */
+ /* Get the space of the dataset and query it */
sid1 = H5Dget_space(dset1);
CHECK(sid1, FAIL, "H5Dget_space");