mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-23 21:17:45 +00:00
Add invalid data test for EXL
This commit is contained in:
parent
e51b1024df
commit
890c228c85
1 changed files with 10 additions and 0 deletions
10
src/exl.rs
10
src/exl.rs
|
@ -125,4 +125,14 @@ mod tests {
|
||||||
|
|
||||||
assert_eq!(existing_exl.write_to_buffer().unwrap(), exl);
|
assert_eq!(existing_exl.write_to_buffer().unwrap(), exl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_invalid() {
|
||||||
|
let mut d = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||||
|
d.push("resources/tests");
|
||||||
|
d.push("random");
|
||||||
|
|
||||||
|
// Feeding it invalid data should not panic
|
||||||
|
EXL::from_existing(&read(d).unwrap());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue