From bb079608dd604b44ff95fc4360191a5e12a8f1af Mon Sep 17 00:00:00 2001 From: WindSoilder Date: Wed, 18 May 2022 19:18:21 +0800 Subject: [PATCH] fix move test (#5576) * fix move test * remove ignore --- crates/nu-command/tests/commands/move_/column.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/crates/nu-command/tests/commands/move_/column.rs b/crates/nu-command/tests/commands/move_/column.rs index 94ad0ff24b..1430f0139c 100644 --- a/crates/nu-command/tests/commands/move_/column.rs +++ b/crates/nu-command/tests/commands/move_/column.rs @@ -34,8 +34,6 @@ fn moves_a_column_before() { }) } -// FIXME: jt: needs more work -#[ignore] #[test] fn moves_columns_before() { Playground::setup("move_column_test_2", |dirs, sandbox| { @@ -60,8 +58,9 @@ fn moves_columns_before() { open sample.csv | move column99 column3 --before column2 | rename _ chars_1 chars_2 - | get chars_2 chars_1 - | str trim + | select chars_2 chars_1 + | upsert new_col {|f| $f | transpose | get column1 | str trim | str collect} + | get new_col | str collect "# )); @@ -70,8 +69,6 @@ fn moves_columns_before() { }) } -// FIXME: jt: needs more work -#[ignore] #[test] fn moves_a_column_after() { Playground::setup("move_column_test_3", |dirs, sandbox| { @@ -97,8 +94,9 @@ fn moves_a_column_after() { | move letters --after and_more | move letters and_more --before column2 | rename _ chars_1 chars_2 - | get chars_1 chars_2 - | str trim + | select chars_1 chars_2 + | upsert new_col {|f| $f | transpose | get column1 | str trim | str collect} + | get new_col | str collect "# ));