From 70303a77e6d859d403ef477663ab019fcde77f60 Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 27 Mar 2024 13:53:55 -0400 Subject: [PATCH] Clean up --- dust-lang/src/parser.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dust-lang/src/parser.rs b/dust-lang/src/parser.rs index 06343f7..c2f7392 100644 --- a/dust-lang/src/parser.rs +++ b/dust-lang/src/parser.rs @@ -700,7 +700,7 @@ mod tests { #[test] fn map_index() { assert_eq!( - parse(&lex("{ x = 42}.x").unwrap()).unwrap()[0], + parse(&lex("{ x = 42 }.x").unwrap()).unwrap()[0], Statement::Expression(Expression::MapIndex( Box::new(MapIndex::new( Expression::Value( @@ -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))