Debian Codegraph @

t/paamayim_nekdotayim.t

raw symbols SCIP
1 use strictscip-perl cpan Package-Stash 0.40 strict/;
2 use warningsscip-perl cpan Package-Stash 0.40 warnings/;
3 use libscip-perl cpan Package-Stash 0.40 lib/ 't/lib';
4 use Test::Morescip-perl cpan Package-Stash 0.40 Test/More/;
5 use Test::Fatalscip-perl cpan Package-Stash 0.40 Test/Fatal/;
6
7 use Package::Stashscip-perl cpan Package-Stash 0.40 Package/Stash/;
8
9 my $stash = Package::Stash->newscip-perl cpan Package-Stash 0.40 Package/Stash/new().('Foo');
10 # this segfaulted on the xs version
11 likescip-perl cpan Package-Stash 0.40 main/like().(
12 exceptionscip-perl cpan Package-Stash 0.40 main/exception(). { $stash->add_symbolscip-perl cpan Package-Stash 0.40 Package/Stash/add_symbol().('@bar::baz') },
13 qr/^Variable names may not contain ::/,
14 "can't add symbol with ::"
15 );
16 likescip-perl cpan Package-Stash 0.40 main/like().(
17 exceptionscip-perl cpan Package-Stash 0.40 main/exception(). { $stash->get_symbolscip-perl cpan Package-Stash 0.40 Package/Stash/get_symbol().('@bar::baz') },
18 qr/^Variable names may not contain ::/,
19 "can't add symbol with ::"
20 );
21 likescip-perl cpan Package-Stash 0.40 main/like().(
22 exceptionscip-perl cpan Package-Stash 0.40 main/exception(). { $stash->get_or_add_symbolscip-perl cpan Package-Stash 0.40 Package/Stash/get_or_add_symbol().('@bar::baz') },
23 qr/^Variable names may not contain ::/,
24 "can't add symbol with ::"
25 );
26
27 done_testing;