Fix bug in unittest

This commit is contained in:
2022-05-16 22:47:32 +08:00
parent ec5109dd48
commit e3c3a9a3c5

View File

@@ -212,6 +212,11 @@ fn check_file_size<P: AsRef<Path> + ?Sized>(path: &P, size: u64) -> Result<(), P
#[test]
fn test_pd_file() -> Result<(), PdFileError> {
let p = Path::new("./test");
if !p.exists() {
let re = create_dir("./test");
assert!(re.is_ok() || p.exists());
}
{
let f = PdFile::new();
f.open_with_create_file("test/a.pd")?;