Skip to content

Commit

Permalink
fix: match updated helper api
Browse files Browse the repository at this point in the history
  • Loading branch information
ojeytonwilliams committed Jan 22, 2024
1 parent 82b8398 commit 9ed87eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The `one` variable should be an integer.

```js
({ test: () => {
assert(runPython(`_ast_helpers.variable_is_integer(_tree,"one")`))
assert(runPython(`_Chainable().parse(_code).find_variable("one").is_integer()`))
}})
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ def __inputGen(xs):
input = __inputGen(${JSON.stringify(input ?? [])})
`);

runPython(`
import ast_helpers as _ast_helpers
`);
runPython(`from ast_helpers import Chainable as _Chainable`);

// The tests need the user's code as a string, so we write it to the virtual
// filesystem.
Expand Down

0 comments on commit 9ed87eb

Please sign in to comment.