summaryrefslogtreecommitdiff
path: root/t/lib/TestIndex.rakumod
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2020-03-16 15:33:39 +0000
committerdakkar <dakkar@thenautilus.net>2020-03-16 15:34:19 +0000
commit6bc735051d38c1f84acaa40d8e724398e50dcc90 (patch)
tree216bb751b33a54a2f104bc0c80b4acf89d715e07 /t/lib/TestIndex.rakumod
parentactually working cache updating in ByAddresses (diff)
downloadMaildirIndexer-6bc735051d38c1f84acaa40d8e724398e50dcc90.tar.gz
MaildirIndexer-6bc735051d38c1f84acaa40d8e724398e50dcc90.tar.bz2
MaildirIndexer-6bc735051d38c1f84acaa40d8e724398e50dcc90.zip
indices can now return confidence levelsbayes
also, tests pass again
Diffstat (limited to 't/lib/TestIndex.rakumod')
-rw-r--r--t/lib/TestIndex.rakumod4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/lib/TestIndex.rakumod b/t/lib/TestIndex.rakumod
index c0b0b03..13043ac 100644
--- a/t/lib/TestIndex.rakumod
+++ b/t/lib/TestIndex.rakumod
@@ -5,7 +5,7 @@ unit class TestIndex does MaildirIndexer::Index;
has %.mails;
has $.name = 'test index';
-has @.responses = ( 'foo' xx 10 );
+has @.responses = ( Mailbox.new(:name('foo'),:1confidence) xx 10 );
has atomicint $!seen = 0;
has Int $.expect;
@@ -30,6 +30,6 @@ method del-path(IO:D $path, Str:D $mailbox --> Nil) {
%.mails{$mailbox}{$path}:delete;
}
-method mailbox-for-email(MaildirIndexer::Email:D $email --> Str) {
+method mailbox-for-email(MaildirIndexer::Email:D $email --> Mailbox) {
return @!responses.shift;
}