Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 16 lines (12 sloc) 0.423 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use v6;
use Test;
BEGIN { @*INC.push: 't/spec/packages/' }

plan 3;

use Fancy::Utilities;
ok eval('class Fancy { }; 1'), 'can define a class A when module A::B has been used';

eval_lives_ok 'my class A::B { ... }; A::B.new(); class A::B { };',
    'can stub lexical classes with joined namespaces';

# RT #71260
class Outer::Inner { };
dies_ok { eval 'Outer.foo' },
    'can sensibly die when calling method on package';
Something went wrong with that request. Please try again.