WIP
This commit is contained in:
@@ -17,17 +17,6 @@ fn rand_deterministic() {
|
||||
assert_eq!(f1.stack(), f2.stack());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rrand_inclusive() {
|
||||
let f = forth_seeded(42);
|
||||
for _ in 0..20 {
|
||||
f.clear_stack();
|
||||
f.evaluate("1 3 rrand", &default_ctx()).unwrap();
|
||||
let val = stack_int(&f);
|
||||
assert!(val >= 1 && val <= 3, "rrand {} not in [1, 3]", val);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn seed_resets() {
|
||||
let f1 = forth_seeded(1);
|
||||
|
||||
Reference in New Issue
Block a user