mirror of
https://github.com/casey/just.git
synced 2024-11-26 00:24:22 +03:00
23 lines
347 B
Rust
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,
|
|
}
|