New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Location.t in branches/UKMO/r6232_tracer_advection/NEMOGCM/EXTERNAL/fcm/t/Fcm/Keyword/Entry – NEMO

source: branches/UKMO/r6232_tracer_advection/NEMOGCM/EXTERNAL/fcm/t/Fcm/Keyword/Entry/Location.t @ 9295

Last change on this file since 9295 was 9295, checked in by jcastill, 6 years ago

Remove svn keywords

File size: 752 bytes
Line 
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More qw{no_plan};
7
8main();
9
10sub main {
11    my ($class) = 'Fcm::Keyword::Entry::Location';
12    use_ok($class);
13    test_constructor($class);
14}
15
16################################################################################
17# Tests constructor
18sub test_constructor {
19    my ($class) = @_;
20    my $prefix = 'constructor';
21    isa_ok($class->new(), $class, "$prefix: empty");
22    my $entry = $class->new({key => 'key', value => 'value'});
23    isa_ok($entry, $class, "$prefix: normal");
24    is($entry->get_key(), 'key', "$prefix: normal: get_key()");
25    is($entry->get_value(), 'value', "$prefix: normal: get_value()");
26    isa_ok($entry->get_revision_entries(), 'Fcm::Keyword::Entries');
27}
28
29__END__
Note: See TracBrowser for help on using the repository browser.