source: branches/UKMO/r6232_tracer_advection/NEMOGCM/EXTERNAL/fcm/t/Fcm/Interactive/InputGetter.t @ 9295

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

Remove svn keywords

File size: 913 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::Interactive::InputGetter';
12    use_ok($class);
13    test_constructor($class);
14}
15
16################################################################################
17# Tests usage of constructor
18sub test_constructor {
19    my ($class) = @_;
20    my $prefix = 'constructor';
21    my $input_getter = $class->new({
22        title   => 'title-value',
23        message => 'message-value',
24        type    => 'type-value',
25        default => 'default-value',
26    });
27    isa_ok($input_getter, $class);
28    is($input_getter->get_title(), 'title-value', "$prefix: get title");
29    is($input_getter->get_message(), 'message-value', "$prefix: get message");
30    is($input_getter->get_type(), 'type-value', "$prefix: get type");
31    is($input_getter->get_default(), 'default-value', "$prefix: get default");
32}
33
34__END__
Note: See TracBrowser for help on using the repository browser.