Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
eb0cbe9c
Commit
eb0cbe9c
authored
Feb 13, 2018
by
LEFEBVREJP email
Browse files
Fixing radixio hysplit cdump test to account for YY date.
parent
e4d52205
Pipeline
#11994
failed with stages
in 3 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixio/tests/tstHysplitCDump.cc
View file @
eb0cbe9c
...
...
@@ -99,7 +99,8 @@ TEST(RadixIO, HysplitCDump)
int
y1
,
y2
,
m1
,
m2
,
d1
,
d2
,
h1
,
h2
,
f1
,
f2
;
cd1
->
dateTime
(
y1
,
m1
,
d1
,
h1
);
cd2
->
dateTime
(
y2
,
m2
,
d2
,
h2
);
EXPECT_EQ
(
y1
,
y2
);
EXPECT_EQ
(
y1
%
100
,
y2
);
// 1951 => 51
EXPECT_EQ
(
m1
,
m2
);
EXPECT_EQ
(
d1
,
d2
);
EXPECT_EQ
(
h1
,
h2
);
...
...
@@ -115,7 +116,7 @@ TEST(RadixIO, HysplitCDump)
cd1
->
location
(
i
,
y1
,
m1
,
d1
,
h1
,
lat1
,
lon1
,
z1
,
min1
);
cd2
->
location
(
i
,
y2
,
m2
,
d2
,
h2
,
lat2
,
lon2
,
z2
,
min2
);
EXPECT_EQ
(
y1
,
y2
);
EXPECT_EQ
(
y1
%
100
,
y2
);
// 1951 => 51
EXPECT_EQ
(
m1
,
m2
);
EXPECT_EQ
(
d1
,
d2
);
EXPECT_EQ
(
h1
,
h2
);
...
...
@@ -149,7 +150,7 @@ TEST(RadixIO, HysplitCDump)
cd1
->
startTime
(
i
,
y1
,
m1
,
d1
,
h1
,
min1
,
f1
);
cd2
->
startTime
(
i
,
y2
,
m2
,
d2
,
h2
,
min2
,
f2
);
EXPECT_EQ
(
y1
,
y2
);
EXPECT_EQ
(
y1
%
100
,
y2
);
// 1951 => 51
EXPECT_EQ
(
m1
,
m2
);
EXPECT_EQ
(
d1
,
d2
);
EXPECT_EQ
(
h1
,
h2
);
...
...
@@ -163,7 +164,7 @@ TEST(RadixIO, HysplitCDump)
cd1
->
endTime
(
i
,
y1
,
m1
,
d1
,
h1
,
min1
,
f1
);
cd2
->
endTime
(
i
,
y2
,
m2
,
d2
,
h2
,
min2
,
f2
);
EXPECT_EQ
(
y1
,
y2
);
EXPECT_EQ
(
y1
%
100
,
y2
);
// 1951 => 51
EXPECT_EQ
(
m1
,
m2
);
EXPECT_EQ
(
d1
,
d2
);
EXPECT_EQ
(
h1
,
h2
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment