Commit eb0cbe9c authored by LEFEBVREJP email's avatar 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
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment