diff options
author | Griffin Smith <root@gws.fyi> | 2019-07-19T16·07-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2019-07-19T16·07-0400 |
commit | 4e9138aa6ff72e34392e3467c40d5ddf095f0027 (patch) | |
tree | fca3adc29893db473fda66688046f4dd294f78d4 /src | |
parent | e2d13bd76b9af9cc2734cdcb9df605afa95cca31 (diff) |
add a test ensuring messages work
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!(), + ); + } +} |