mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 07:50:04 +00:00
Support text product updates
This commit is contained in:
parent
be1d7323bd
commit
a202e0e2a0
7 changed files with 66 additions and 3 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 9d377550477ba00b9da3b594b838ba08d3ebcaaf
|
||||
Subproject commit b8c76bd23f636f9dad08efafa348dcbfe878f0b1
|
||||
|
|
@ -35,5 +35,26 @@ INSTANTIATE_TEST_SUITE_P(
|
|||
"/warnings/warnings_20210606_22-59.txt",
|
||||
"/nexrad/level3/KLSX_NOUS63_FTMLSX_202201041404"));
|
||||
|
||||
TEST(TextProductFile, Update)
|
||||
{
|
||||
const std::string filename1 {std::string(SCWX_TEST_DATA_DIR) +
|
||||
"/warnings/warnings_20210606_22-08.txt"};
|
||||
const std::string filename2 {std::string(SCWX_TEST_DATA_DIR) +
|
||||
"/warnings/warnings_20210606_22-19.txt"};
|
||||
const std::string filename3 {std::string(SCWX_TEST_DATA_DIR) +
|
||||
"/warnings/warnings_20210606_22-59.txt"};
|
||||
|
||||
TextProductFile file;
|
||||
|
||||
file.LoadFile(filename1);
|
||||
EXPECT_EQ(file.message_count(), 2);
|
||||
|
||||
file.LoadFile(filename2);
|
||||
EXPECT_EQ(file.message_count(), 4);
|
||||
|
||||
file.LoadFile(filename3);
|
||||
EXPECT_EQ(file.message_count(), 13);
|
||||
}
|
||||
|
||||
} // namespace awips
|
||||
} // namespace scwx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue