1
0
dust/dust-lang/tests/operations.rs

10 lines
158 B
Rust
Raw Normal View History

2024-09-10 03:24:22 +00:00
use dust_lang::*;
#[test]
fn addition() {
let source = "21 + 21";
let result = run(source);
assert_eq!(result, Ok(Some(Value::integer(42))));
}