do not expand ranges and enable the to_nuon_range test back

This commit is contained in:
amtoine 2023-03-11 14:14:15 +01:00
parent b151294ab2
commit 4cc61dfd14
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB
2 changed files with 1 additions and 3 deletions

View File

@ -53,8 +53,6 @@ impl Command for ToNuon {
let use_tabs = call.has_flag("tabs");
let span = call.head;
// allow ranges to expand and turn into array
let input = input.try_expand_range()?;
let value = input.into_value(span);
let nuon_result = if raw {

View File

@ -177,7 +177,7 @@ fn to_nuon_records() {
assert_eq!(actual.out, "true");
}
#[allow(dead_code)]
#[test]
fn to_nuon_range() {
let actual = nu!(
cwd: "tests/fixtures/formats", pipeline(