Last change
on this file since 5501 was
5501,
checked in by aclsce, 4 years ago
|
First import of IPSLCM6.5_work_ENSEMBLES working configuration
|
-
Property svn:executable set to
*
|
File size:
649 bytes
|
Line | |
---|
1 | #!/usr/bin/perl |
---|
2 | |
---|
3 | use strict; |
---|
4 | use warnings; |
---|
5 | |
---|
6 | use Fcm::Keyword::Entry::Location; |
---|
7 | use Test::More qw{no_plan}; |
---|
8 | |
---|
9 | main(); |
---|
10 | |
---|
11 | sub main { |
---|
12 | my $class = 'Fcm::Keyword::Formatter::Entry::Location'; |
---|
13 | use_ok($class); |
---|
14 | test_normal($class); |
---|
15 | } |
---|
16 | |
---|
17 | ################################################################################ |
---|
18 | # Tests normal usage |
---|
19 | sub test_normal { |
---|
20 | my ($class) = @_; |
---|
21 | my $prefix = 'normal'; |
---|
22 | my $formatter = $class->new(); |
---|
23 | isa_ok($formatter, $class, $prefix); |
---|
24 | my $entry = Fcm::Keyword::Entry::Location->new({key => 'k', value => 'v'}); |
---|
25 | like($formatter->format($entry), qr{k \s = \s v}xms, "$prefix: format"); |
---|
26 | } |
---|
27 | |
---|
28 | __END__ |
---|
Note: See
TracBrowser
for help on using the repository browser.