mirror of
https://github.com/nushell/nushell.git
synced 2024-12-26 08:59:12 +01:00
22 lines
462 B
Rust
22 lines
462 B
Rust
use nu_test_support::{nu, pipeline};
|
|
|
|
#[test]
|
|
fn reports_emptiness() {
|
|
let actual = nu!(
|
|
cwd: ".", pipeline(
|
|
r#"
|
|
echo [[are_empty];
|
|
[([[check]; [[]] ])]
|
|
[([[check]; [""] ])]
|
|
[([[check]; [{}] ])]
|
|
]
|
|
| get are_empty
|
|
| all? {
|
|
empty? check
|
|
}
|
|
"#
|
|
));
|
|
|
|
assert_eq!(actual.out, "true");
|
|
}
|