Feat: script execution performance optimization
This commit is contained in:
@@ -12,7 +12,7 @@ fn fetch_nonexistent() {
|
||||
|
||||
#[test]
|
||||
fn persistence_across_evals() {
|
||||
let f = forth();
|
||||
let mut f = forth();
|
||||
let ctx = default_ctx();
|
||||
f.evaluate(r#"10 !counter"#, &ctx).unwrap();
|
||||
f.clear_stack();
|
||||
@@ -50,7 +50,7 @@ fn set_keep() {
|
||||
|
||||
#[test]
|
||||
fn set_keep_stores() {
|
||||
let f = forth();
|
||||
let mut f = forth();
|
||||
let ctx = default_ctx();
|
||||
f.evaluate(r#"42 ,x"#, &ctx).unwrap();
|
||||
f.clear_stack();
|
||||
@@ -60,7 +60,7 @@ fn set_keep_stores() {
|
||||
|
||||
#[test]
|
||||
fn set_keep_chain() {
|
||||
let f = forth();
|
||||
let mut f = forth();
|
||||
let ctx = default_ctx();
|
||||
f.evaluate(r#"10 ,a ,b"#, &ctx).unwrap();
|
||||
f.clear_stack();
|
||||
|
||||
Reference in New Issue
Block a user