You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
proper_resolution=bashparser.parse('echo an_argument; cd there;')[0]
17
17
self.assertTrue(resolved_node==proper_resolution)
18
18
19
19
deftest_build_and_resolve_fn(self):
20
20
# Tests nested replacement and build&resolve fn.
21
21
# Note the extra space at the end of the function replacement in correctly_resolved_node. Intentional cause keeping the spacing is way too hard for what its worth. Might need some consistency around it though
22
-
fn_node=bashparse.parse('somefn () { echo $1; cd there; }')[0]
23
-
calling_node=bashparse.parse('for a in $(dir); do somefn an_argument; done')[0]
22
+
fn_node=bashparser.parse('somefn () { echo $1; cd there; }')[0]
23
+
calling_node=bashparser.parse('for a in $(dir); do somefn an_argument; done')[0]
0 commit comments