From a3d2922f7eba0956b3825431a465e5555100743d Mon Sep 17 00:00:00 2001 From: Erin Date: Wed, 30 Mar 2022 21:03:17 +0200 Subject: [PATCH] fixed tests --- ablescript/src/interpret.rs | 2 +- ablescript/src/parser.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ablescript/src/interpret.rs b/ablescript/src/interpret.rs index 452feba..caed5f8 100644 --- a/ablescript/src/interpret.rs +++ b/ablescript/src/interpret.rs @@ -751,7 +751,7 @@ mod tests { let mut env = ExecEnv::new(); eval( &mut env, - "var foo = 1; foo = 2; if (true) { var foo = 3; foo = 4; }", + "var foo = 1; foo = 2; if (always) { var foo = 3; foo = 4; }", ) .unwrap(); diff --git a/ablescript/src/parser.rs b/ablescript/src/parser.rs index 59a8581..4b3a070 100644 --- a/ablescript/src/parser.rs +++ b/ablescript/src/parser.rs @@ -639,7 +639,7 @@ mod tests { span: 4..5, }), rhs: Box::new(Expr { - kind: ExprKind::Literal(Value::Abool(crate::variables::Abool::Always)), + kind: ExprKind::Variable("always".to_owned()), span: 9..15, }), kind: BinOpKind::Equal,