add a test ensuring messages work
This commit is contained in:
parent
e2d13bd76b
commit
4e9138aa6f
1 changed files with 17 additions and 1 deletions
|
@ -48,7 +48,7 @@ impl<'a> NestedMap<'a> {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
mod nested_map_tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
@ -141,3 +141,19 @@ pub fn message<'a, R: Rng + ?Sized>(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use rand::rngs::SmallRng;
|
||||
use rand::SeedableRng;
|
||||
|
||||
#[test]
|
||||
fn test_static_messages() {
|
||||
message(
|
||||
"global.welcome",
|
||||
&mut SmallRng::from_entropy(),
|
||||
&template_params!(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue