1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

more tests

This commit is contained in:
Nikolay Kim
2017-10-14 23:14:26 -07:00
parent c3e71bb9ad
commit b79187a425
4 changed files with 28 additions and 2 deletions

View File

@ -39,6 +39,9 @@ fn test_request_cookies() {
let cookie = cookie.unwrap();
assert_eq!(cookie.name(), "cookie1");
assert_eq!(cookie.value(), "value1");
let cookie = req.cookie("cookie-unknown");
assert!(cookie.is_none());
}
#[test]