tests: Executable for testing layouts

This commit is contained in:
Dorota Czaplejewicz
2019-11-19 09:47:32 +00:00
parent f834f174d8
commit 9571adb107
6 changed files with 103 additions and 73 deletions

View File

@ -305,7 +305,7 @@ impl Layout {
.map_err(LoadError::BadResource)
}
fn from_file(path: PathBuf) -> Result<Layout, Error> {
pub fn from_file(path: PathBuf) -> Result<Layout, Error> {
let infile = BufReader::new(
fs::OpenOptions::new()
.read(true)