diff --git a/ablescript/src/interpret.rs b/ablescript/src/interpret.rs index 452febac..caed5f8b 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 59a85810..4b3a070b 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,