develooper Front page | perl.perl6.compiler | Postings from July 2005

Re: Is namespace qualification really required

Thread Previous | Thread Next
From:
philcrow
Date:
July 19, 2005 10:53
Subject:
Re: Is namespace qualification really required
Message ID:
200507191753.j6JHrJFw006741@webmail.sunflower.com
> Autrijus Tang <autrijus@autrijus.org> wrote:
> 
> On Mon, Jul 18, 2005 at 02:47:06PM -0500, philcrow@sunflower.com wrote:
> > I did this.  I included two tests, one without multiple packages (which 
> > works) and one with them (which fails).  I marked the second test todo.
> 
> ...and I fixed the bug promptly. :)

Thanks for working on this, but there is still a problem.

When I run make test, the two tests both pass.  When I run the test as:

perl -Iblib/lib t/subroutines/defaults.t

I get errors:
1..2
ok 1 - default sub called
not ok 2 - default sub called in package namespace
#   Failed test (t/subroutines/defaults.t line 35, column 1-62)
#        Got: undef
# Looks like you failed 1 tests of 2

Further, the original example still fails.  This is all quite confusing to me.  When I saw the tests pass during make test, I thought I was set to move on to my real example.  Now I don't know which way is up.

Phil

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About