comline/tests/units/mod.rs

29 lines
620 B
Rust
Raw Normal View History

2023-06-15 07:10:20 -05:00
// Standard Uses
use std::string::ToString;
// Local Uses
// External Uses
use once_cell::sync::Lazy;
use comline::ir::unit::{Const, Unit};
use comline::ir::primitive::TypeValue;
2023-06-15 07:10:20 -05:00
// Unit with a namespace and a constant
#[allow(unused)]
static UNIT_NAMESPACE_CONST_1: Lazy<Unit> = Lazy::new( || {
Unit::Items(
vec![
Unit::Namespace("units.test".to_string()),
Unit::Consts(vec![
Const {
id: "".to_string(),
type_: TypeValue::U8,
default_value: vec![],
}
])
]
)
});