Add unit tests

This commit is contained in:
Keith Yeung 2016-12-09 15:55:54 -08:00
parent 63a7e8efdf
commit 16f1947e24
3 changed files with 120 additions and 7 deletions

View file

@ -21,7 +21,7 @@ fn run(set_location: &str, set_cookies: &[&str], final_location: &str) -> String
if let Ok(SetCookie(cookies)) = header {
for bare_cookie in cookies {
if let Some(cookie) = Cookie::new_wrapped(bare_cookie, &url, source) {
storage.push(cookie, source);
storage.push(cookie, &url, source);
}
}
}