summaryrefslogtreecommitdiff
path: root/Examples/test-suite/perl5/naturalvar_runme.pl
blob: c0f972d6811c4f403a1c3ad9a5e4b9974b425b88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 5;
BEGIN { use_ok('naturalvar') }
require_ok('naturalvar');

# adapted from ../python/naturalvar_runme.py

my $f = naturalvar::Foo->new();
isa_ok($f, 'naturalvar::Foo');
my $b = naturalvar::Bar->new();
isa_ok($b, 'naturalvar::Bar');

$b->{f} = $f;

$naturalvar::s = "hello";

$b->{s} = "hello";

is($naturalvar::s, $b->{s});