supercell-wx/test/source/scwx/network/dir_list.test.cpp
2022-11-02 21:59:16 -05:00

28 lines
512 B
C++

#include <scwx/network/dir_list.hpp>
#include <gtest/gtest.h>
namespace scwx
{
namespace network
{
static const std::string& kDefaultUrl {"https://warnings.allisonhouse.com"};
static const std::string& kAlternateUrl {"http://warnings.cod.edu"};
TEST(DirList, GetDefaultUrl)
{
auto records = DirList(kDefaultUrl);
EXPECT_GT(records.size(), 0);
}
TEST(DirList, GetAlternateUrl)
{
auto records = DirList(kAlternateUrl);
EXPECT_GT(records.size(), 0);
}
} // namespace network
} // namespace scwx