mirror of
https://github.com/nushell/nushell.git
synced 2025-05-31 23:26:11 +02:00
Revert "Fix recursive tests"
This reverts commit 083c05c3720473c51437b0355322c5bdc324d452.
This commit is contained in:
parent
083c05c372
commit
c292b5f609
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user