mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): make test stricter in case coverter project (#57883)
This commit is contained in:
+2
-1
@@ -50,7 +50,8 @@ Your list comprehension should evaluate `'_' + char.lower()` for each `char` in
|
||||
```js
|
||||
({
|
||||
test: () => assert(runPython(`
|
||||
_Node(_code).find_function("convert_to_snake_case").find_variable("snake_cased_char_list").find_comp_expr().is_equivalent("'_' + char.lower()")
|
||||
target_var = _Node(_code).find_function("convert_to_snake_case").find_variable("snake_cased_char_list")
|
||||
target_var.find_comp_expr().is_equivalent("'_' + char.lower()") and len(target_var.find_comp_ifs()) == 0
|
||||
`))
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user