delete $this_stash->{$_} for @default_exports, keys %imported, @not_imported;
}
-Test::More::plan(tests => 8 * @default_exports + 7 + 2);
+Test::More::plan(tests => 9 * @default_exports + 8 + 3);
check_imports();
check_imports([ ], [ 'nonexistent' ]);
}
+{
+ local $@;
+ eval {
+ Test::Leaner->import(import => [ 'use_ok' ]);
+ };
+ Test::More::like($@, qr/^"use_ok" is not exported by the Test::Leaner module/, 'import "use_ok" croaks');
+ check_imports([ ], [ 'use_ok' ]);
+}
+
{
local $@;
eval {