1
1
mirror of https://github.com/casey/just.git synced 2024-11-29 06:03:58 +03:00
just/tests/assertions.rs
2024-05-15 01:55:32 +00:00

23 lines
347 B
Rust

use super::*;
test! {
name: assert_pass,
justfile: "
foo:
{{ assert('a' == 'a', 'error message') }}
",
stdout: "",
stderr: "",
}
test! {
name: assert_fail,
justfile: "
foo:
{{ assert('a' != 'a', 'error message') }}
",
stdout: "",
stderr: "error: Assert failed: error message\n",
status: EXIT_FAILURE,
}