activate back to_nuon_errs_on_closure with valid assertion

This commit is contained in:
amtoine 2023-03-18 09:50:14 +01:00
parent 4cc61dfd14
commit 0b4fad7eff
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -285,7 +285,7 @@ fn from_nuon_datetime() {
assert_eq!(actual.out, "date");
}
#[allow(dead_code)]
#[test]
fn to_nuon_errs_on_closure() {
let actual = nu!(
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]