From 6bc735051d38c1f84acaa40d8e724398e50dcc90 Mon Sep 17 00:00:00 2001 From: dakkar Date: Mon, 16 Mar 2020 15:33:39 +0000 Subject: indices can now return confidence levels also, tests pass again --- t/lib/TestIndex.rakumod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/lib/TestIndex.rakumod') 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; } -- cgit v1.2.3