public void H5Tcommit_anonTest2() { // can't commit pre-defined types Assert.IsFalse( H5T.commit_anon(m_v0_test_file, H5T.IEEE_F64BE) >= 0); Assert.IsFalse( H5T.commit_anon(m_v2_test_file, H5T.IEEE_F64BE) >= 0); }
public void H5Tcommit_anonTest3() { Assert.IsFalse( H5T.commit_anon(m_v0_test_file, Utilities.RandomInvalidHandle()) >= 0); Assert.IsFalse( H5T.commit_anon(Utilities.RandomInvalidHandle(), Utilities.RandomInvalidHandle()) >= 0); }
public void H5Tcommit_anonTest1() { hid_t dtype = H5T.copy(H5T.IEEE_F64LE); Assert.IsTrue(dtype >= 0); Assert.IsTrue(H5T.commit_anon(m_v0_test_file, dtype) >= 0); // can't commit twice Assert.IsFalse(H5T.commit_anon(m_v0_test_file, dtype) >= 0); // can't commit to different files Assert.IsFalse(H5T.commit_anon(m_v2_test_file, dtype) >= 0); Assert.IsTrue(H5T.close(dtype) >= 0); }