aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/tests/hsts.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-01-25 18:06:33 -0600
committerGitHub <noreply@github.com>2018-01-25 18:06:33 -0600
commitc9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b (patch)
treeb6b5d9e1539d294fdbba5fec5a545d8aa6552443 /components/net/tests/hsts.rs
parentfc3b1789318afc8f10e160d40b592234fbdb5cf4 (diff)
parent31631cdc47618a1591b6520eab8c82b28ac13bee (diff)
downloadservo-c9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b.tar.gz
servo-c9ba16f9fbdf7f43cb19feedfaaa68c85bbcbe3b.zip
Auto merge of #19868 - CYBAI:specific-assertion, r=emilio
Use specific assertions Similar to #19865 r? jdm Note: Should I squash all the commits into one commit? --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because it should not break anything <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19868) <!-- Reviewable:end -->
Diffstat (limited to 'components/net/tests/hsts.rs')
-rw-r--r--components/net/tests/hsts.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/net/tests/hsts.rs b/components/net/tests/hsts.rs
index eca9d2a8d27..bd035a1616e 100644
--- a/components/net/tests/hsts.rs
+++ b/components/net/tests/hsts.rs
@@ -92,7 +92,7 @@ fn test_push_entry_with_0_max_age_evicts_entry_from_list() {
list.push(HstsEntry::new("mozilla.org".to_owned(),
IncludeSubdomains::NotIncluded, Some(0)).unwrap());
- assert!(list.is_host_secure("mozilla.org") == false)
+ assert_eq!(list.is_host_secure("mozilla.org"), false)
}
#[test]
@@ -107,7 +107,7 @@ fn test_push_entry_to_hsts_list_should_not_add_subdomains_whose_superdomain_is_a
list.push(HstsEntry::new("servo.mozilla.org".to_owned(),
IncludeSubdomains::NotIncluded, None).unwrap());
- assert!(list.entries_map.get("mozilla.org").unwrap().len() == 1)
+ assert_eq!(list.entries_map.get("mozilla.org").unwrap().len(), 1)
}
#[test]
@@ -139,7 +139,7 @@ fn test_push_entry_to_hsts_list_should_not_create_duplicate_entry() {
list.push(HstsEntry::new("mozilla.org".to_owned(),
IncludeSubdomains::NotIncluded, None).unwrap());
- assert!(list.entries_map.get("mozilla.org").unwrap().len() == 1)
+ assert_eq!(list.entries_map.get("mozilla.org").unwrap().len(), 1)
}
#[test]