mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 07:50:04 +00:00
Add IEM load text product API functionality
This commit is contained in:
parent
f06191f290
commit
2720ad6a38
5 changed files with 90 additions and 20 deletions
|
|
@ -7,7 +7,7 @@ namespace scwx
|
|||
namespace provider
|
||||
{
|
||||
|
||||
TEST(IemWarningsProviderTest, LoadUpdatedFiles)
|
||||
TEST(IemWarningsProviderTest, ListTextProducts)
|
||||
{
|
||||
using namespace std::chrono;
|
||||
using sys_days = time_point<system_clock, days>;
|
||||
|
|
@ -30,5 +30,18 @@ TEST(IemWarningsProviderTest, LoadUpdatedFiles)
|
|||
}
|
||||
}
|
||||
|
||||
TEST(IemWarningsProviderTest, LoadTextProducts)
|
||||
{
|
||||
static const std::vector<std::string> productIds {
|
||||
"202303250016-KMEG-WFUS54-TORMEG", //
|
||||
"202303252015-KFFC-WFUS52-TORFFC"};
|
||||
|
||||
IemWarningsProvider provider {};
|
||||
|
||||
auto textProducts = provider.LoadTextProducts(productIds);
|
||||
|
||||
EXPECT_EQ(textProducts.size(), 2);
|
||||
}
|
||||
|
||||
} // namespace provider
|
||||
} // namespace scwx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue