summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-08-27 11:30:34 -0500
committerJesse Luehrs <doy@tozt.net>2010-08-27 11:30:34 -0500
commit9488328b8551006f79cc8e3cf144209e39774dd1 (patch)
treef8ac062364fae9957c0a984556b0a1e36d3de6be /t
parent34b3fdd2f60e9abce14a19de07a2574db5ec4017 (diff)
downloadpackage-stash-9488328b8551006f79cc8e3cf144209e39774dd1.tar.gz
package-stash-9488328b8551006f79cc8e3cf144209e39774dd1.zip
another test
Diffstat (limited to 't')
-rw-r--r--t/04-get.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/04-get.t b/t/04-get.t
index 3e2a530..3176ed1 100644
--- a/t/04-get.t
+++ b/t/04-get.t
@@ -90,9 +90,12 @@ use Package::Stash;
open $val, '<', \$str;
is(readline($stash->get_package_symbol('FOO')), "foo",
"got the right variable");
+ seek($stash->get_package_symbol('FOO'), 0, 0);
{
package Io;
::isa_ok(*FOO{IO}, 'IO');
+ ::is(<FOO>, "foo",
+ "stash has the right variable");
}
}
}
@@ -183,11 +186,14 @@ TODO: {
open $val, '<', \$str;
is(readline($stash->get_package_symbol('FOO')), "foo",
"got the right variable");
+ seek($stash->get_package_symbol('FOO'), 0, 0);
}
{
package Io::Vivify;
no warnings 'once';
::isa_ok(*FOO{IO}, 'IO');
+ ::is(<FOO>, "foo",
+ "stash has the right variable");
}
}