#include "hostname.h" #include Y_UNIT_TEST_SUITE(THostNameTest) { Y_UNIT_TEST(Test1) { UNIT_ASSERT(*GetHostName() != '?'); } Y_UNIT_TEST(TestFQDN) { UNIT_ASSERT(*GetFQDNHostName() != '?'); } Y_UNIT_TEST(TestIsFQDN) { const auto x = GetFQDNHostName(); try { UNIT_ASSERT(IsFQDN(x)); } catch (...) { Cerr << x << Endl; throw; } } } // Y_UNIT_TEST_SUITE(THostNameTest)