Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. extern crate rand;
  2.  
  3. mod text;
  4.  
  5. fn main() {
  6. use rand::SeedableRng;
  7. let mut lex = text::Lexicon::new(rand::Isaac64Rng::from_seed(&[1, 2, 3, 4]));
  8. let nowhere = lex.source("nowhere".to_string());
  9. let nobody = lex.author(nowhere.clone(), "nobody".to_string());
  10. let message = lex.tell(nowhere.clone(), nobody, "nothing".to_string());
  11. assert!(message.is_none());
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement