File: 002_newcopy.t

package info (click to toggle)
libgps-point-perl 0.20-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 124 kB
  • sloc: perl: 310; makefile: 2
file content (20 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- perl -*-

use strict;
use warnings;
use Test::More tests => 7;
BEGIN { use_ok( 'GPS::Point' ); }

my $pt1 = GPS::Point->new(lat=>39,
                          lon=>-77);
isa_ok ($pt1, 'GPS::Point');

my $pt2=GPS::Point->new(%$pt1);

is($pt1->lat, 39, "pt1 lat");
is($pt2->lat, 39, "pt2 lat");

is($pt1->lat(38), 38, "pt1 lat");

is($pt1->lat, 38, "pt1 lat");
is($pt2->lat, 39, "pt2 lat");