Fix recursive tests

This commit is contained in:
132ikl 2025-02-26 22:31:29 -05:00
parent 649b428f19
commit 083c05c372

View File

@ -329,9 +329,9 @@ fn def_recursive_func_should_work() {
def recursive [c: int] {
if ($c == 0) { return }
if ($c mod 2 > 0) {
$in | recursive ($c - 1)
} else {
recursive ($c - 1)
} else {
ignore | 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) {
$in | recursive ($c - 1)
} else {
recursive ($c - 1)
} else {
ignore | recursive ($c - 1)
}
}"#);
assert!(actual.err.is_empty());