use crate::{check_if_files_are_same, remove_file_if_exists}; use crate::persistence::get_test_wt; #[test] fn test_persist() { remove_file_if_exists("tests/data/test.wt".to_string()); let table = get_test_wt(); table.persist().unwrap(); assert!(check_if_files_are_same( "tests/data/test.wt".to_string(), "tests/data/expected/test_persist.wt".to_string() )) }