1
Fork 0
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:
Joshua Goins 2024-04-16 21:53:10 -04:00
parent e51b1024df
commit 890c228c85

View file

@ -125,4 +125,14 @@ mod tests {
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());
}
}