fixed tests

This commit is contained in:
Erin 2022-03-30 21:03:17 +02:00 committed by ondra05
parent f18742a9b3
commit c2e9daf1fc
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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,