From 4e88cbed2f3cec6447e3405c859fc657936fde7c Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy <mmstickman@gmail.com> Date: Sat, 17 Jun 2017 15:19:34 -0400 Subject: [PATCH] Fix Tests --- src/parser/peg.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/peg.rs b/src/parser/peg.rs index 6c7c2792..fc7e6b6b 100644 --- a/src/parser/peg.rs +++ b/src/parser/peg.rs @@ -248,7 +248,7 @@ else let correct_parse = Statement::Function{ description: "".into(), name: "bob".into(), - args: vec!["a".to_owned(), "b".to_owned()], + args: vec![FunctionArgument::Untyped("a".to_owned()), FunctionArgument::Untyped("b".to_owned())], statements: Default::default(), }; assert_eq!(correct_parse, parsed_if); @@ -265,7 +265,7 @@ else let correct_parse = Statement::Function{ description: "bob is a nice function".to_string(), name: "bob".into(), - args: vec!("a".to_owned(), "b".to_owned()), + args: vec!(FunctionArgument::Untyped("a".to_owned()), FunctionArgument::Untyped("b".to_owned())), statements: vec!() }; assert_eq!(correct_parse, parsed_if); -- GitLab