comline/tests/units/mod.rs
2023-06-24 04:16:35 +01:00

29 lines
620 B
Rust

// 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;
// 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![],
}
])
]
)
});