summaryrefslogtreecommitdiffstats
path: root/t/basic.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-10 14:17:52 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-10 14:17:52 -0400
commit818958abaf7ad4f86101f88e74caf688b23be9a3 (patch)
tree0dca925e22a60be5b63405e49c531d1ca93d9d2c /t/basic.t
parenta571380fee1cfd63ba816842df95777ac9b2b0cb (diff)
downloadexporter-lexical-818958abaf7ad4f86101f88e74caf688b23be9a3.tar.gz
exporter-lexical-818958abaf7ad4f86101f88e74caf688b23be9a3.zip
initial (non-working) implementation
Diffstat (limited to 't/basic.t')
-rw-r--r--t/basic.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/basic.t b/t/basic.t
new file mode 100644
index 0000000..f7321e9
--- /dev/null
+++ b/t/basic.t
@@ -0,0 +1,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;