add a test ensuring messages work

This commit is contained in:
Griffin Smith 2019-07-19 12:07:27 -04:00
parent e2d13bd76b
commit 4e9138aa6f

View file

@ -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!(),
);
}
}