libcaesium/tests/integration.rs

12 lines
321 B
Rust
Raw Normal View History

2021-10-23 21:38:56 +02:00
#[test]
fn unknown_file_type() {
let output = "tests/samples/output/should_not_be_there";
2022-02-23 17:50:48 +01:00
let params = caesium::initialize_parameters();
2022-10-02 15:02:15 +02:00
let result = caesium::compress(
String::from("tests/samples/output/.gitkeep"),
String::from(output),
2022-11-14 23:00:14 +01:00
&params,
2022-10-02 15:02:15 +02:00
);
2021-10-23 21:38:56 +02:00
assert!(result.is_err())
}