Skip to content

Commit 89c89f1

Browse files
authored
Update test data (#534)
* update test data * Fix tests
1 parent 528462d commit 89c89f1

File tree

8 files changed

+24538
-19472
lines changed

8 files changed

+24538
-19472
lines changed

data/brave/brave-main-list.txt

Lines changed: 13602 additions & 10773 deletions
Large diffs are not rendered by default.

data/brave/brave-resources.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

data/easylist.to/easylist/easylist.txt

Lines changed: 10626 additions & 8610 deletions
Large diffs are not rendered by default.

data/easylist.to/easylist/easyprivacy.txt

Lines changed: 254 additions & 45 deletions
Large diffs are not rendered by default.

data/easylist.to/easylistgermany/easylistgermany.txt

Lines changed: 46 additions & 34 deletions
Large diffs are not rendered by default.

tests/matching.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,5 @@ fn check_rule_matching_browserlike() {
199199
let (blocked, passes) = bench_rule_matching_browserlike(&engine, &requests);
200200
let msg = "The number of blocked/passed requests has changed. ".to_string()
201201
+ "If this is expected, update the expected values in the test.";
202-
assert_eq!((blocked, passes), (101638, 141307), "{}", msg);
202+
assert_eq!((blocked, passes), (101701, 141244), "{msg}");
203203
}

tests/unit/blocker.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,20 +1360,20 @@ mod legacy_rule_parsing_tests {
13601360
// * not handling document/subdocument options;
13611361
// * the optimizer that merges multiple rules into one;
13621362
const EASY_LIST: ListCounts = ListCounts {
1363-
filters: 45878 - 697,
1363+
filters: 47781 - 674,
13641364
cosmetic_filters: if cfg!(feature = "css-validation") {
1365-
23639
1365+
23784
13661366
} else {
1367-
23655
1367+
23801
13681368
},
1369-
exceptions: 697,
1369+
exceptions: 674,
13701370
duplicates: 0,
13711371
};
13721372
// differences in counts explained by hashset size underreporting as detailed in the next two cases
13731373
const EASY_PRIVACY: ListCounts = ListCounts {
1374-
filters: 54156 - 756, // total - exceptions
1374+
filters: 54357 - 762, // total - exceptions
13751375
cosmetic_filters: 29,
1376-
exceptions: 756,
1376+
exceptions: 762,
13771377
duplicates: 2,
13781378
};
13791379
// ublockUnbreak = { 4, 8, 0, 94 };

tests/unit/engine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ mod tests {
237237
);
238238
}
239239
let expected_hash: u64 = if cfg!(feature = "css-validation") {
240-
6149900431907845995
240+
18094146314477408965
241241
} else {
242-
4163862738495854511
242+
8215024964158872824
243243
};
244244

245245
assert_eq!(hash(&data), expected_hash, "{HASH_MISMATCH_MSG}");

0 commit comments

Comments
 (0)