Fix test.

This commit is contained in:
Stephen Chung 2020-10-27 23:45:04 +08:00
parent 18b23bdd7d
commit 4b087d0e69
2 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,7 @@ impl AST {
}
/// Get a mutable reference to the statements.
#[cfg(not(feature = "no_optimize"))]
#[inline(always)]
pub(crate) fn statements_mut(&mut self) -> &mut Vec<Stmt> {
&mut self.0

View File

@ -72,7 +72,7 @@ fn test_max_operations_functions() -> Result<(), Box<EvalAltResult>> {
fn inc(x) { x + 1 }
let x = 0;
while x < 28 {
while x < 30 {
print(x);
x = inc(x);
}