8000 Adjust test to change in parser interface · geddski/python@dc7d6ed · GitHub
[go: up one dir, main page]

Skip to content

Commit dc7d6ed

Browse files
committed
Adjust test to change in parser interface
1 parent b4650c0 commit dc7d6ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test-incremental.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ def b(self):
1616
""" ${"big block comment to fill up the reuse size quota\n ".repeat(150)} """
1717
pass
1818
`
19-
let ast = parser.parse({input})
19+
let ast = parser.parse(input)
2020
let at = input.indexOf("pass")
2121
input = input.slice(0, at) + " " + input.slice(at)
2222
let cache = TreeFragment.applyChanges(TreeFragment.addTree(ast), [{fromA: at, toA: at, fromB: at, toB: at + 1}])
23-
let ast2 = parser.parse({input, fragments: cache})
23+
let ast2 = parser.parse(input, cache)
2424
if (ast2.toString() != ast.toString()) throw new Error("Malformed tree")
2525

2626
let lastFunc = ast => {

0 commit comments

Comments
 (0)
0