1
0
dust/tests/logic.rs

9 lines
210 B
Rust
Raw Permalink Normal View History

2024-01-06 07:26:51 +00:00
use dust_lang::*;
#[test]
fn complex_logic_sequence() {
let result = interpret("(length([0]) == 1) && (length([0 0]) == 2) && (length([0 0 0]) == 3)");
assert_eq!(Ok(Value::Boolean(true)), result);
}