From c292b5f609b314000874fd5a26323d39610ee002 Mon Sep 17 00:00:00 2001 From: 132ikl <132@ikl.sh> Date: Wed, 26 Feb 2025 22:34:48 -0500 Subject: [PATCH] Revert "Fix recursive tests" This reverts commit 083c05c3720473c51437b0355322c5bdc324d452. --- crates/nu-command/tests/commands/def.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/nu-command/tests/commands/def.rs b/crates/nu-command/tests/commands/def.rs index c31f39c6fb..0705c0085f 100644 --- a/crates/nu-command/tests/commands/def.rs +++ b/crates/nu-command/tests/commands/def.rs @@ -329,9 +329,9 @@ fn def_recursive_func_should_work() { def recursive [c: int] { if ($c == 0) { return } if ($c mod 2 > 0) { - recursive ($c - 1) + $in | recursive ($c - 1) } else { - ignore | recursive ($c - 1) + recursive ($c - 1) } }"#); assert!(actual.err.is_empty()); @@ -346,9 +346,9 @@ fn export_def_recursive_func_should_work() { export def recursive [c: int] { if ($c == 0) { return } if ($c mod 2 > 0) { - recursive ($c - 1) + $in | recursive ($c - 1) } else { - ignore | recursive ($c - 1) + recursive ($c - 1) } }"#); assert!(actual.err.is_empty());