Skip to content

Commit

Permalink
add metadata check to datatype test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Aug 26, 2024
1 parent 898fe9f commit 80b4852
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/datatype_test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ async function datatype_test() {
await h5wasm.ready;
var f = new h5wasm.File('./test/array.h5', 'r');

assert.deepEqual(f.get('datatype/value'), new h5wasm.Datatype());
const datatype = f.get('datatype/value');
assert(datatype instanceof h5wasm.Datatype);
assert.deepEqual(datatype.metadata, {
signed: false,
type: 3,
cset: 0,
strpad: 1,
vlen: false,
littleEndian: false,
size: 10
});
}

export const tests = [
Expand Down

0 comments on commit 80b4852

Please sign in to comment.