summaryrefslogblamecommitdiffstats
path: root/t/basic.t
blob: f7321e92f330238c9b5485207f019ed27b622278 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                     
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;

use Exporter::Lexical ();

sub foo { 'foo' }

is(foo(), "foo");
{
    BEGIN { Exporter::Lexical::lexical_import(foo => sub { "FOO" }) }
    is(foo(), "FOO");
}
is(foo(), "foo");

done_testing;