depend on ::XS 0.24
[gitmo/Package-Stash.git] / t / paamayim_nekdotayim.t
CommitLineData
875d2d1d 1#!/usr/bin/env perl
2use strict;
3use warnings;
4use lib 't/lib';
5use Test::More;
6use Test::Fatal;
7
8use Package::Stash;
9
10my $stash = Package::Stash->new('Foo');
11# this segfaulted on the xs version
12like(
13 exception { $stash->add_symbol('@bar::baz') },
14 qr/^Variable names may not contain ::/,
15 "can't add symbol with ::"
16);
17like(
18 exception { $stash->get_symbol('@bar::baz') },
19 qr/^Variable names may not contain ::/,
20 "can't add symbol with ::"
21);
22
23done_testing;