Skip to content

Commit

Permalink
starting to add netcdf-4 atomic type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jun 6, 2019
1 parent f85ff96 commit d83ca72
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/cunit/test_darray_vard.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ int test_darray(int iosysid, int ioid, int fmt, int num_flavors,
test_data_double)))
ERR(ret);
break;
case PIO_UBYTE:
if ((ret = PIOc_put_vard_uchar(ncid, varid, ioid, 0,
test_data_ubyte)))
ERR(ret);
break;
default:
ERR(ERR_WRONG);
}
Expand Down Expand Up @@ -248,6 +253,11 @@ int test_darray(int iosysid, int ioid, int fmt, int num_flavors,
test_data_double_in)))
ERR(ret);
break;
case PIO_UBYTE:
if ((ret = PIOc_get_vard_uchar(ncid2, varid, ioid, 0,
test_data_ubyte_in)))
ERR(ret);
break;
default:
ERR(ERR_WRONG);
}
Expand Down Expand Up @@ -281,6 +291,10 @@ int test_darray(int iosysid, int ioid, int fmt, int num_flavors,
if (test_data_double_in[f] != test_data_double[f])
return ERR_WRONG;
break;
case PIO_UBYTE:
if (test_data_ubyte_in[f] != test_data_ubyte[f])
return ERR_WRONG;
break;
default:
ERR(ERR_WRONG);
}
Expand Down

0 comments on commit d83ca72

Please sign in to comment.