-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tests for RT #63956 * state variables in subset types * subsets of subset types * sub form of split with limits * Str.split('', $limit) tests git-svn-id: http://svn.pugscode.org/pugs@25963 c213334d-75ef-0310-aa23-eaa082d1ae64
- Loading branch information
moritz
committed
Mar 22, 2009
1 parent
310944a
commit 21f6acc
Showing
8 changed files
with
102 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use v6; | ||
use Test; | ||
plan 3; | ||
|
||
# test that classes and roles declared in modules get into the correct | ||
# namespace | ||
|
||
# Used to be a Rakudo bug, RT #63956 | ||
|
||
BEGIN { @*INC.push('t/spec/packages/') }; | ||
|
||
eval_lives_ok 'use A::A', 'Can load classes from nested modules'; | ||
eval_lives_ok 'use A::A; A::B::D ~~ A::B::B or die()', | ||
'... and the composition worked'; | ||
eval_lives_ok 'use A::A; A::B::D.new()', | ||
'... and instantiation works'; | ||
|
||
# vim: ft=perl6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# used in t/spec/S11-modules/nested.t | ||
|
||
BEGIN { @*INC.push('t/spec/packages') }; | ||
|
||
module A::A { | ||
use A::B; | ||
} | ||
|
||
# vim: ft=perl6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# used in t/spec/S11-modules/nested.t | ||
|
||
module A::B; | ||
role B { }; | ||
class D does A::B::B { }; | ||
|
||
|
||
|