Skip to content

Commit

Permalink
Make file tests more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg authored and AlexDaniel committed Jul 13, 2019
1 parent d90444a commit 7d76a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/advent2010-day03.t
Expand Up @@ -15,12 +15,12 @@ sub temp_name(Str $fnbase is copy) {
# Directories

my @rakudo-files = map {$_.relative}, dir;
my @rakudo-expected = <Makefile VERSION CREDITS LICENSE>;
my @rakudo-expected = <Makefile CREDITS LICENSE README.md>;
ok @rakudo-expected (<=) @rakudo-files, "dir"
or diag "missing: {@rakudo-expected (-) @rakudo-files}";

my @test-files = map *.relative.subst('\\', '/'), dir 't';
my @test-expected = <t/spectest.data>;
my @test-expected = <t/harness5 t/harness6>;
ok @test-expected (<=) @test-files, 'dir'
or diag "got: {@test-files} missing: {@test-expected (-) @test-files}";

Expand Down

0 comments on commit 7d76a2f

Please sign in to comment.