message: Update tests for PropertyList
diff: @@ -179,15 +179,41 @@ pub mod tests {
  use crate::globals::{H5P_FILE_ACCESS, H5P_FILE_CREATE};
  use crate::internal_prelude::*;
  - use super::PropertyList;
  + use super::{PropertyList, PropertyListClass};
  - #[test]
  - pub fn test_clone_eq() {
  + fn make_plists() -> (PropertyList, PropertyList) {
  let fapl = PropertyList::from_id(h5call!(H5Pcreate(*H5P_FILE_ACCESS)).unwrap()).unwrap();
  let fcpl = PropertyList::from_id(h5call!(H5Pcreate(*H5P_FILE_CREATE)).unwrap()).unwrap();
  - assert!(fapl.is_valid());
  - assert!(fcpl.is_valid());
  + (fapl, fcpl)
  + }
  +
  + #[test]
  + pub fn test_class() {
  + let (fapl, fcpl) = make_plists();
  + assert_eq!(fapl.class().unwrap(), PropertyListClass::FileAccess);
  + assert_eq!(fcpl.class().unwrap(), PropertyListClass::FileCreate);
  + }
  +
  + #[test]
  + pub fn test_len() {
  + let (fapl, fcpl) = make_plists();
  + assert!(fapl.len() > 1);
  + assert!(fcpl.len() > 1);
  + assert_ne!(fapl.len(), fcpl.len());
  + }
  +
  + #[test]
  + pub fn test_eq_ne() {
  + let (fapl, fcpl) = make_plists();
  + assert_eq!(fapl, fapl);
  + assert_eq!(fcpl, fcpl);
  assert_ne!(fapl, fcpl);
  + }
  +
  + #[test]
  + pub fn test_clone() {
  + let (fapl, _) = make_plists();
  + assert!(fapl.is_valid());
  let fapl_c = fapl.clone();
  assert!(fapl.is_valid());
  assert!(fapl_c.is_valid());
  @@ -195,6 +221,5 @@ pub mod tests {
  assert_eq!(fapl_c.refcount(), 1);
  assert_eq!(fapl, fapl_c);
  assert_ne!(fapl.id(), fapl_c.id());
  - assert_ne!(fcpl, fapl_c);
  }
  }
  