1
0
dust/tests/enums.rs

18 lines
223 B
Rust
Raw Normal View History

2024-03-18 16:21:42 +00:00
use dust_lang::*;
#[test]
fn define_enum() {
interpret(
"
enum FooBar(F) {
Foo(F),
Bar,
}
foo = FooBar::Foo(1)
foo
",
)
.unwrap();
}