got datatype read/write working with database.
This commit is contained in:
@ -191,7 +191,7 @@ mod file_data {
|
||||
Err(err) => match err.code {
|
||||
ErrorCode::CorruptFile => Ok(()),
|
||||
_ => Err(DBError::new("incorrect error code")),
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@ -214,15 +214,15 @@ mod file_data {
|
||||
assert!(
|
||||
err.source().is_some(),
|
||||
"Should state file corruption cause."
|
||||
);
|
||||
);
|
||||
assert_eq!(
|
||||
err.source().unwrap().to_string(),
|
||||
format!("database {} already exists", name)
|
||||
);
|
||||
);
|
||||
Ok(())
|
||||
},
|
||||
}
|
||||
_ => Err(DBError::new("incorrect error code")),
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user