|
4 | 4 |
|
5 | 5 | use Test;
|
6 | 6 |
|
7 |
| -plan 63; |
| 7 | +plan 81; |
8 | 8 |
|
9 | 9 | my regex fairly_conclusive_platform_error {:i ^\N* <<Null?>>}
|
10 | 10 |
|
@@ -276,4 +276,54 @@ throws-like q[
|
276 | 276 | 'no Null PMC access with "use lib $double_quoted_string"';
|
277 | 277 | }
|
278 | 278 |
|
| 279 | +# RT #118361 |
| 280 | +{ |
| 281 | + class Pub::Bar::Tap { } |
| 282 | + is Pub::Bar::Tap.gist, '(Tap)', 'type object of class gists to short name in parens'; |
| 283 | + is Pub::Bar::Tap.WHO.gist, 'Pub::Bar::Tap', '.WHO of class gists to long name'; |
| 284 | + is Pub::Bar::Tap.WHO.Str, 'Pub::Bar::Tap', '.WHO of class stringifies to long name'; |
| 285 | + |
| 286 | + module Cafe { |
| 287 | + module Kitchen { |
| 288 | + module Blowtorch { } |
| 289 | + } |
| 290 | + } |
| 291 | + is Cafe::Kitchen::Blowtorch.gist, '(Blowtorch)', |
| 292 | + 'type object of nested module definition gists to short name in parens'; |
| 293 | + is Cafe::Kitchen::Blowtorch.WHO.gist, 'Cafe::Kitchen::Blowtorch', |
| 294 | + '.WHO of nested module definition gists to long name'; |
| 295 | + is Cafe::Kitchen::Blowtorch.WHO.Str, 'Cafe::Kitchen::Blowtorch', |
| 296 | + '.WHO of nested module definition stringifies to long name'; |
| 297 | + |
| 298 | + role Metal::Djent { } |
| 299 | + is Metal::Djent.gist, '(Djent)', 'type object of role gists to short name in parens'; |
| 300 | + is Metal::Djent.WHO.gist, 'Metal::Djent', '.WHO of role gists to long name'; |
| 301 | + is Metal::Djent.WHO.Str, 'Metal::Djent', '.WHO of role stringifies to long name'; |
| 302 | + |
| 303 | + package Castle { |
| 304 | + role Princess { } |
| 305 | + } |
| 306 | + is Castle::Princess.gist, '(Princess)', |
| 307 | + 'type object of nested role definition gists to short name in parens'; |
| 308 | + is Castle::Princess.WHO.gist, 'Castle::Princess', |
| 309 | + '.WHO of nested role definition gists to long name'; |
| 310 | + is Castle::Princess.WHO.Str, 'Castle::Princess', |
| 311 | + '.WHO of nested role definition stringifies to long name'; |
| 312 | + |
| 313 | + package Tour { |
| 314 | + subset AllInclusive of Any; |
| 315 | + } |
| 316 | + is Tour::AllInclusive.gist, '(AllInclusive)', 'type object of subset gists to short name in parens'; |
| 317 | + is Tour::AllInclusive.WHO.gist, 'Tour::AllInclusive', '.WHO of subset gists to long name'; |
| 318 | + is Tour::AllInclusive.WHO.Str, 'Tour::AllInclusive', '.WHO of subset stringifies to long name'; |
| 319 | + |
| 320 | + subset Digestive::Chocolate of Any; |
| 321 | + is Digestive::Chocolate.gist, '(Chocolate)', |
| 322 | + 'type object of nested subset definition gists to short name in parens'; |
| 323 | + is Digestive::Chocolate.WHO.gist, 'Digestive::Chocolate', |
| 324 | + '.WHO of nested subset definition gists to long name'; |
| 325 | + is Digestive::Chocolate.WHO.Str, 'Digestive::Chocolate', |
| 326 | + '.WHO of nested subset definition stringifies to long name'; |
| 327 | +} |
| 328 | + |
279 | 329 | # vim: ft=perl6
|
0 commit comments