Update tests
This commit is contained in:
@@ -56,7 +56,7 @@ fn float_literal() {
|
|||||||
fn string_with_spaces() {
|
fn string_with_spaces() {
|
||||||
let f = run(r#""hello world" "x" set "x" get"#);
|
let f = run(r#""hello world" "x" set "x" get"#);
|
||||||
match stack_top(&f) {
|
match stack_top(&f) {
|
||||||
seq::model::forth::Value::Str(s, _) => assert_eq!(s, "hello world"),
|
cagire::model::forth::Value::Str(s, _) => assert_eq!(s, "hello world"),
|
||||||
other => panic!("expected string, got {:?}", other),
|
other => panic!("expected string, got {:?}", other),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use rand::rngs::StdRng;
|
use rand::rngs::StdRng;
|
||||||
use rand::SeedableRng;
|
use rand::SeedableRng;
|
||||||
use seq::model::forth::{Forth, Rng, StepContext, Value, Variables};
|
use cagire::model::forth::{Forth, Rng, StepContext, Value, Variables};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
use super::harness::*;
|
use super::harness::*;
|
||||||
use seq::model::forth::Value;
|
use cagire::model::forth::Value;
|
||||||
|
|
||||||
fn int(n: i64) -> Value {
|
fn int(n: i64) -> Value {
|
||||||
Value::Int(n, None)
|
Value::Int(n, None)
|
||||||
|
|||||||
Reference in New Issue
Block a user