Update hello_world example test.

This commit is contained in:
Sergio Benitez 2021-03-06 01:39:24 -08:00
parent a0784b4b15
commit fe9e2256a3
1 changed files with 10 additions and 0 deletions

View File

@ -5,4 +5,14 @@ fn hello_world() {
let client = Client::tracked(super::rocket()).unwrap();
let response = client.get("/").dispatch();
assert_eq!(response.into_string(), Some("Hello, world!".into()));
let response = client.get("/hello/world").dispatch();
assert_eq!(response.into_string(), Some("Hello, world!".into()));
}
#[test]
fn hello_mir() {
let client = Client::tracked(super::rocket()).unwrap();
let response = client.get("/hello/%D0%BC%D0%B8%D1%80").dispatch();
assert_eq!(response.into_string(), Some("Привет, мир!".into()));
}