Skip to content

Commit 81b91de

Browse files
committed
Fix Quotable tests
According to all of the recent changes.
1 parent 31e2029 commit 81b91de

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

t/quotable.t

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,36 @@ $t.test(‘basic test’,
2222
:150timeout);
2323

2424
$t.test-gist(lots of results,
25-
%(result => { .lines > 390 }));
25+
%(result-#perl6.md => { 370 < .lines < 10_000 }));
2626

2727
$t.test-gist(all lines match our regex,
28-
%(result => { so .lines.all.starts-with(bisect:) }));
28+
%(result-#perl6.md => { so .lines.all.starts-with([` bisect:) }));
2929

3030

3131
$t.test(invalid regex,
3232
{$t.bot-nick}: ‘foo,
3333
/^ <me($t)>‘, OK, working on it! This may take up to three minutes (’\d+‘ messages to process)’ $/,
3434
{$t.our-nick}, https://whatever.able/fakeupload);
3535

36-
$t.test-gist(lots of results,
36+
$t.test-gist(error message gisted,
3737
%(result => /^ ‘===SORRY!=== Error while compiling’ /));
3838

39-
4039
# Non-bot tests
41-
todo outdated data (issue #192), 2;
4240
subtest all channels have recent data, {
4341
my @tracked-channels = dir data/irc, test => { .starts-with(#) && data/irc/$_.IO.d };
4442
ok @tracked-channels > 0, at least one channel is tracked;
4543
for @tracked-channels {
44+
dd $_;
4645
my $exists = $_/{DateTime.now.earlier(:2days).Date}.IO.e;
46+
todo outdated data (issue #192), 3;
4747
ok $exists, {.basename} is up-to-date (or was up-to-date 2 days ago);
48+
cmp-ok $_.cache.IO.modified.DateTime, &[>], DateTime.now.earlier(:2days),
49+
$_ cache file was recently updated;
50+
cmp-ok $_.total.IO.modified.DateTime, &[>], DateTime.now.earlier(:2days),
51+
$_ cache file was recently updated;
4852
}
4953
}
5054

51-
cmp-ok data/irc/cache.IO.modified.DateTime, &[>], DateTime.now.earlier(:2days),
52-
cache file was recently updated;
53-
54-
5555
$t.last-test;
5656
done-testing;
5757
END $t.end;

0 commit comments

Comments
 (0)