use Test::More tests => 5;

BEGIN { use_ok "Class::Mix", qw(genpkg); }

{
	no warnings;
	$__GP1::foo = 1;
	$Foo::Bar::__GP4::foo = 1;
}

is genpkg, "__GP0";
is genpkg, "__GP2";
is genpkg("Foo::Bar::"), "Foo::Bar::__GP3";
is genpkg("Foo::Bar::"), "Foo::Bar::__GP5";
