ultimate_question/
ultimate_question.rs

1extern crate question;
2use question::{Answer, Question};
3
4fn main() {
5    let question = "What is the answer to the Ultimate Question of Life, \
6                    the Universe, and Everything?";
7
8    let answer = Question::new(question).ask().unwrap();
9    let correct = Answer::RESPONSE(String::from("42"));
10    assert_eq!(answer, correct);
11}