forked from extern/nushell
activate back to_nuon_errs_on_closure
with valid assertion
This commit is contained in:
parent
4cc61dfd14
commit
0b4fad7eff
@ -285,7 +285,7 @@ fn from_nuon_datetime() {
|
|||||||
assert_eq!(actual.out, "date");
|
assert_eq!(actual.out, "date");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[test]
|
||||||
fn to_nuon_errs_on_closure() {
|
fn to_nuon_errs_on_closure() {
|
||||||
let actual = nu!(
|
let actual = nu!(
|
||||||
cwd: "tests/fixtures/formats", pipeline(
|
cwd: "tests/fixtures/formats", pipeline(
|
||||||
@ -295,7 +295,7 @@ fn to_nuon_errs_on_closure() {
|
|||||||
"#
|
"#
|
||||||
));
|
));
|
||||||
|
|
||||||
assert!(actual.err.contains("not nuon-compatible"));
|
assert!(actual.err.contains("can't convert closure to NUON"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user