10 lines
158 B
Rust
10 lines
158 B
Rust
|
use dust_lang::*;
|
||
|
|
||
|
#[test]
|
||
|
fn addition() {
|
||
|
let source = "21 + 21";
|
||
|
let result = run(source);
|
||
|
|
||
|
assert_eq!(result, Ok(Some(Value::integer(42))));
|
||
|
}
|