fixed tests
This commit is contained in:
parent
c1c8f17c8d
commit
a3d2922f7e
|
@ -751,7 +751,7 @@ mod tests {
|
||||||
let mut env = ExecEnv::new();
|
let mut env = ExecEnv::new();
|
||||||
eval(
|
eval(
|
||||||
&mut env,
|
&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();
|
.unwrap();
|
||||||
|
|
||||||
|
|
|
@ -639,7 +639,7 @@ mod tests {
|
||||||
span: 4..5,
|
span: 4..5,
|
||||||
}),
|
}),
|
||||||
rhs: Box::new(Expr {
|
rhs: Box::new(Expr {
|
||||||
kind: ExprKind::Literal(Value::Abool(crate::variables::Abool::Always)),
|
kind: ExprKind::Variable("always".to_owned()),
|
||||||
span: 9..15,
|
span: 9..15,
|
||||||
}),
|
}),
|
||||||
kind: BinOpKind::Equal,
|
kind: BinOpKind::Equal,
|
||||||
|
|
Loading…
Reference in a new issue