On Tue, 02 Jan 2018 04:23:34 -0800, dakkar wrote: > IO::Path.dir uses the global $*CWD to construct the objects it > returns; it should probably use the invocant's $!CWD instead. > > This test currently fails: > > use v6.c; > use Test; > > mkdir('/tmp/one/two'); > > for IO::Path.new('one',:CWD</tmp/>).dir -> $d { > ok $d ~~ :e, "{$d.perl} should exist"; > } > > done-testing; > > while this passes: > > for IO::Path.new('/tmp/one/two').dir -> $d { > ok $d ~~ :e, "{$d.perl} should exist"; > } > > I think they should both pass. >
Thank you for the report. This is now fixed. Fix: https://github.com/rakudo/rakudo/commit/b3e73b64a28ff72 Test: https://github.com/perl6/roast/commit/5f83c043f0d2d02f9