Permalink
Browse files

[t/spec] fix roles smartlinks

git-svn-id: http://svn.pugscode.org/pugs@26712 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 1631ff1 commit 25e6fd904beca0f3db98f87eb297ce33134512ea moritz committed May 7, 2009
Showing with 5 additions and 5 deletions.
  1. +1 −1 S14-roles/basic.t
  2. +2 −2 S14-roles/mixin.t
  3. +1 −1 S14-roles/parameterized-basic.t
  4. +1 −1 S14-roles/parameterized-mixin.t
View
@@ -57,7 +57,7 @@ eval_dies_ok q{ $baz ~~ Baz }, 'smartmatch against non-existent type dies
is $b.attr, 42, '$b "inherited" the $.attr attribute of B (1)';
is ($b.attr = 23), 23, '$b "inherited" the $.attr attribute of B (2)';
- # L<S14/Roles/operator creates a copy and works on that.>
+ # L<S14/Run-time Mixins/"operator creates a copy">
# As usual, ok instead of todo_ok to avoid unexpected succeedings.
my Bar $c .= new(),
ok defined($c), 'creating a Foo worked';
View
@@ -2,7 +2,7 @@ use v6;
use Test;
plan 22;
-# L<S14/Roles/"Run-time mixins are done with does and but">
+# L<S14/Run-time Mixins/>
role R1 { method test { 42 } }
class C1 { }
@@ -64,7 +64,7 @@ is @array.test, 42, 'mixing in a role at the point of declaration works'
is $x, 42, 'mixing in at point of declaration at compile time';
}
-# L<S14/Roles/"but only if the role supplies exactly one attribute">
+# L<S14/Run-time Mixins/"but only if the role supplies exactly one attribute">
{
role R4a {
@@ -13,7 +13,7 @@ Basic parameterized role tests, see L<S14/Roles>
#?pugs emit skip_rest('parameterized roles'); exit;
#?pugs emit =begin SKIP
-# L<S14/Roles/may be parameterized>
+# L<S14/Run-time Mixins/may be parameterized>
# Some basic arity-based selection tests.
role AritySelection {
@@ -15,7 +15,7 @@ Might need some more review and love --moritz
#?pugs emit skip_rest('parameterized roles'); exit;
#?pugs emit =begin SKIP
-# L<S14/Roles/may be parameterized>
+# L<S14/Run-time Mixins/may be parameterized>
role InitialAttribVal[$val] {
has $.attr = $val;
}

0 comments on commit 25e6fd9

Please sign in to comment.