|
1 | 1 | use v6;
|
2 | 2 | use Test;
|
3 | 3 |
|
4 |
| -plan 46; |
| 4 | +plan 47; |
5 | 5 |
|
6 | 6 | =begin pod
|
7 | 7 |
|
@@ -71,4 +71,27 @@ is &infix:<![!%%]>(3,2), False, "Meta not can autogen (![!%%])";
|
71 | 71 | is infix:<!===>(1,2), True, "Meta not can autogen (!===) without &";
|
72 | 72 | is &[!===](1,2), True, "Meta not can autogen (!===) with &[]";
|
73 | 73 |
|
| 74 | +# RT #125575 |
| 75 | +subtest 'chaining of !before/!after' => { |
| 76 | + plan 12; |
| 77 | + |
| 78 | + is-deeply ("a" !after "b" !after "c"), True, '!after/!after (Str)'; |
| 79 | + is-deeply ("a" !before "b" !before "c"), False, '!before/!before (Str)'; |
| 80 | + |
| 81 | + #?rakudo 4 skip 'Should this work? https://github.com/rakudo/rakudo/issues/1304' |
| 82 | + is-deeply ("a" !before "b" !after "c"), False, '!before/!after (Str) (1)'; |
| 83 | + is-deeply ("a" !after "b" !before "c"), False, '!after/!before (Str) (1)'; |
| 84 | + is-deeply ("c" !before "a" !after "b"), True, '!before/!after (Str) (2)'; |
| 85 | + is-deeply ("a" !after "c" !before "b"), False, '!after/!before (Str) (2)'; |
| 86 | + |
| 87 | + is-deeply (1 !after 2 !after 3), True, '!after/!after (Int)'; |
| 88 | + is-deeply (1 !before 2 !before 3), False, '!before/!before (Int)'; |
| 89 | + |
| 90 | + #?rakudo 4 skip 'Should this work? https://github.com/rakudo/rakudo/issues/1304' |
| 91 | + is-deeply (1 !before 2 !after 3), False, '!before/!after (Int) (1)'; |
| 92 | + is-deeply (1 !after 2 !before 3), False, '!after/!before (Int) (1)'; |
| 93 | + is-deeply (3 !before 1 !after 2), True, '!before/!after (Int) (2)'; |
| 94 | + is-deeply (1 !after 3 !before 2), False, '!after/!before (Int) (2)'; |
| 95 | +} |
| 96 | + |
74 | 97 | # vim: ft=perl6
|
0 commit comments