fixed tests

pull/6/head
ondra05 2022-03-30 21:03:17 +02:00
parent bdbf8d0a29
commit 8f6d2483f3
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,