Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prevent confusion with new Empty
  • Loading branch information
lizmat committed May 9, 2015
1 parent a336be6 commit 7749c2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions S10-packages/basic.t
Expand Up @@ -10,7 +10,7 @@ my regex fairly_conclusive_platform_error {:i ^\N* <<Null?>>}

my regex likely_perl6_not_found_err {:i ^\N* <<'can'?not>> \N* <<[f[i|ou]nd|located?|access'ed'?]>> }

package Empty {}
package ThisEmpty {}
package AlsoEmpty::Nested {}

package Simple {
Expand All @@ -30,18 +30,18 @@ is Simple::Bar.new.baz, 'hi', 'class test';
# RT #65404
#?niecza todo
{
lives_ok {Empty.perl ne "tbd"}, 'test for working .perl method'
lives_ok {ThisEmpty.perl ne "tbd"}, 'test for working .perl method'
}

# change to match likely error (top of file) when passes
{
eval_dies_ok 'Empty::no_such_sub()', 'Non-existent sub through package';
eval_dies_ok 'ThisEmpty::no_such_sub()', 'Non-existent sub through package';
}

# Not sure whether you should be able to access something in package this way
# might change to match likely error (top of file) when passes
{
eval_dies_ok 'Empty.no_such_sub_or_prop',
eval_dies_ok 'ThisEmpty.no_such_sub_or_prop',
'Non-existent method with package';
}

Expand Down

0 comments on commit 7749c2a

Please sign in to comment.