File: 00-load.t

package info (click to toggle)
libuniversal-can-perl 1.20140328-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 148 kB
  • sloc: perl: 326; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Test::More tests => 3;

use_ok( 'UNIVERSAL::can' );

diag( "Testing UNIVERSAL::can $UNIVERSAL::can::VERSION, Perl $], $^X" );

ok( ! defined &main::can, 'UNIVERSAL::can() should not export can()' );

package not_main;

use UNIVERSAL::can 'can';

::ok( defined &not_main::can, '.. but should export it when requested' );