diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/messages.rs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/messages.rs b/src/messages.rs index aa0366e786ca..9ca78025ec60 100644 --- a/src/messages.rs +++ b/src/messages.rs @@ -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!(), + ); + } +} |