mirror of
https://github.com/Steffo99/micronfig.git
synced 2024-11-25 17:44:18 +00:00
Add three more tests
This commit is contained in:
parent
22838a6cba
commit
5371080327
4 changed files with 28 additions and 0 deletions
9
micronfig_macros/tests/sources/string_multi_explicit.rs
Normal file
9
micronfig_macros/tests/sources/string_multi_explicit.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
micronfig::config! {
|
||||
GARAS: String,
|
||||
AUTO: String,
|
||||
BUS: String,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
println!("{:?} {:?} {:?}", GARAS(), AUTO(), BUS())
|
||||
}
|
9
micronfig_macros/tests/sources/string_multi_implicit.rs
Normal file
9
micronfig_macros/tests/sources/string_multi_implicit.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
micronfig::config! {
|
||||
GARAS,
|
||||
AUTO,
|
||||
BUS,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
println!("{:?} {:?} {:?}", GARAS(), AUTO(), BUS())
|
||||
}
|
7
micronfig_macros/tests/sources/string_single_implicit.rs
Normal file
7
micronfig_macros/tests/sources/string_single_implicit.rs
Normal file
|
@ -0,0 +1,7 @@
|
|||
micronfig::config! {
|
||||
GARASAUTO,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
println!("{:?}", GARASAUTO())
|
||||
}
|
|
@ -18,3 +18,6 @@ macro_rules! fail {
|
|||
|
||||
pass!(empty);
|
||||
pass!(string_single_explicit);
|
||||
pass!(string_single_implicit);
|
||||
pass!(string_multi_explicit);
|
||||
pass!(string_multi_implicit);
|
Loading…
Reference in a new issue