lfcm/tests/integration_tests.rs

29 lines
484 B
Rust

use config::ConfigError;
use lfcm::config;
config! {
param name = Config;
section top {
var rand: u64 = 42;
section database {
var seed: u64 = 42;
}
section test {
var reps: u64 = 10;
}
}
}
#[test]
fn test_parser() {
let config = match lfcm_load_config(vec![
"tests/fixtures/test1.yaml",
]) {
Ok(config) => config,
Err(e) => return,
};
println!("{:?}", config);
}