diff options
author | Eric Wong <e@80x24.org> | 2021-04-13 10:54:43 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-04-13 15:04:42 -0400 |
commit | c2216fcd14454c937e50e89711c6955ddd4101a7 (patch) | |
tree | ac6985668611373e1ac82ff03a60f8bb30037d8e /t | |
parent | a1a309418475aaa99d63cda8191ef3ce534343cd (diff) | |
download | public-inbox-c2216fcd14454c937e50e89711c6955ddd4101a7.tar.gz |
LeiSavedSearch will use a LeiDedupe-like internal API, so we won't have to make as many changes to callsites between saved and unsaved searches.
Diffstat (limited to 't')
-rw-r--r-- | t/lei_dedupe.t | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/t/lei_dedupe.t b/t/lei_dedupe.t index bcb06a0a..e1944d02 100644 --- a/t/lei_dedupe.t +++ b/t/lei_dedupe.t @@ -74,10 +74,13 @@ ok(!$dd->is_dup($different), 'different is_dup with mid dedupe (augment)'); $different->header_set('Status', 'RO'); ok($dd->is_dup($different), 'different seen with oid dedupe Status removed'); -ok(!$dd->is_dup($eml, '01d'), '1st is_dup with oid dedupe'); -ok($dd->is_dup($different, '01d'), 'different content ignored if oid matches'); -ok($dd->is_dup($eml, '01D'), 'case insensitive oid comparison :P'); -ok(!$dd->is_dup($eml, '01dbad'), 'case insensitive oid comparison :P'); +$smsg = { blob => '01d' }; +ok(!$dd->is_dup($eml, $smsg), '1st is_dup with oid dedupe'); +ok($dd->is_dup($different, $smsg), 'different content ignored if oid matches'); +$smsg->{blob} = uc($smsg->{blob}); +ok($dd->is_dup($eml, $smsg), 'case insensitive oid comparison :P'); +$smsg->{blob} = '01dbad'; +ok(!$dd->is_dup($eml, $smsg), 'case insensitive oid comparison :P'); $smsg->{blob} = 'dead'; ok(!$dd->is_smsg_dup($smsg), 'smsg dedupe pass'); |