fix(curriculum): Merge Sort algorithm step 10 requires spaces to pass (#55980)
Co-authored-by: Lasse Jørgensen <28780271+lasjorg@users.noreply.github.com>pull/56002/head
parent
e7e0388dc7
commit
3c85dac5f5
|
@ -24,7 +24,7 @@ You should have a variable named `left_array_index` inside your `merge_sort` fun
|
|||
const merge_sort = __helpers.python.getDef("\n" + transformedCode, "merge_sort");
|
||||
const { function_body } = merge_sort;
|
||||
|
||||
assert.match(function_body, /left_array_index\s*(?!=)/);
|
||||
assert.match(function_body, /left_array_index/);
|
||||
}
|
||||
})
|
||||
```
|
||||
|
@ -52,7 +52,7 @@ You should have a variable named `right_array_index` inside your `merge_sort` fu
|
|||
const merge_sort = __helpers.python.getDef("\n" + transformedCode, "merge_sort");
|
||||
const { function_body } = merge_sort;
|
||||
|
||||
assert.match(function_body, /right_array_index\s*(?!=)/);
|
||||
assert.match(function_body, /right_array_index/);
|
||||
}
|
||||
})
|
||||
```
|
||||
|
@ -81,7 +81,7 @@ You should have a variable named `sorted_index` inside your `merge_sort` functio
|
|||
const merge_sort = __helpers.python.getDef("\n" + transformedCode, "merge_sort");
|
||||
const { function_body } = merge_sort;
|
||||
|
||||
assert.match(function_body, /sorted_index\s*(?!=)/);
|
||||
assert.match(function_body, /sorted_index/);
|
||||
}
|
||||
})
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue