1
Fork 0
mirror of https://github.com/Steffo99/micronfig.git synced 2024-11-23 00:24:18 +00:00
micronfig/micronfig_macros/tests/config.rs

41 lines
392 B
Rust
Raw Normal View History

2024-01-02 10:53:46 +00:00
use micronfig_macros::config;
#[test]
fn basic() {
config! {
GARAS: String,
AUTO: String,
BUS: String,
}
}
#[test]
fn empty() {
config! {}
}
#[test]
fn conversion_simple() {
config! {
GARAS: String > u32,
AUTO: String > u16,
}
}
/*
#[test]
fn implicit() {
config! {
GARAS,
AUTO,
}
}
#[test]
fn conversion_implicit() {
config! {
GARAS: > u32,
AUTO > u16,
}
}
*/