1
0
dust/tests/enums.rs
2024-02-14 20:53:42 -05:00

21 lines
303 B
Rust

use dust_lang::*;
#[test]
fn simple_enum() {
let result = interpret(
"
enum Foobar {
Foo,
Bar,
}
new Foobar:Foo
",
);
assert_eq!(
result,
Ok(Value::Enum(Enum::new("Foo".to_string(), Value::none())))
);
}