source:
branches/UKMO/dev_r5518_new_runoff_coupling/NEMOGCM/EXTERNAL/fcm/t/Fcm/Interactive/InputGetter/CLI.pm
@
8163
Last change on this file since 8163 was 8163, checked in by dancopsey, 7 years ago | |
---|---|
File size: 506 bytes |
Rev | Line | |
---|---|---|
[1980] | 1 | #!/usr/bin/perl |
2 | ||
3 | use strict; | |
4 | use warnings; | |
5 | ||
6 | use Test::More qw{no_plan}; | |
7 | ||
8 | main(); | |
9 | ||
10 | sub main { | |
11 | my $class = 'Fcm::Interactive::InputGetter::CLI'; | |
12 | use_ok($class); | |
13 | test_constructor($class); | |
14 | } | |
15 | ||
16 | ################################################################################ | |
17 | # Tests usage of constructor | |
18 | sub test_constructor { | |
19 | my ($class) = @_; | |
20 | my $prefix = 'constructor'; | |
21 | my $input_getter = $class->new({}); | |
22 | isa_ok($input_getter, $class); | |
23 | } | |
24 | ||
25 | # TODO: tests the invoke method | |
26 | ||
27 | __END__ |
Note: See TracBrowser
for help on using the repository browser.