Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
We can only sensibly compare relative paths
  • Loading branch information
lizmat committed Nov 3, 2014
1 parent c5545ff commit ac87c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/advent2010-day03.t
Expand Up @@ -14,12 +14,12 @@ sub temp_name(Str $fnbase is copy) {

# Directories

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

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

0 comments on commit ac87c83

Please sign in to comment.