Clean up
This commit is contained in:
parent
e728aa8fbb
commit
70303a77e6
@ -870,14 +870,14 @@ mod tests {
|
||||
#[test]
|
||||
fn function_call() {
|
||||
assert_eq!(
|
||||
parse(&lex("io.write_line()").unwrap()).unwrap()[0],
|
||||
parse(&lex("io.read_line()").unwrap()).unwrap()[0],
|
||||
Statement::Expression(Expression::FunctionCall(
|
||||
FunctionCall::new(
|
||||
Expression::MapIndex(
|
||||
Box::new(MapIndex::new(
|
||||
Expression::Identifier(Identifier::new("io").with_position((0, 2))),
|
||||
Expression::Identifier(
|
||||
Identifier::new("write_line").with_position((3, 13))
|
||||
Identifier::new("read_line").with_position((3, 13))
|
||||
)
|
||||
))
|
||||
.with_position((0, 13))
|
||||
|
Loading…
Reference in New Issue
Block a user