one more test
[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);
fb571e92 22like(
23 exception { $stash->get_or_add_symbol('@bar::baz') },
24 qr/^Variable names may not contain ::/,
25 "can't add symbol with ::"
26);
875d2d1d 27
28done_testing;