mirror of
https://github.com/Steffo99/micronfig.git
synced 2024-11-22 16:14:19 +00:00
41 lines
No EOL
392 B
Rust
41 lines
No EOL
392 B
Rust
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,
|
|
}
|
|
}
|
|
*/ |