5 int main(int argc
, char const* argv
[])
9 CHECK_NOTNULL(tld
.get_registered_domain("digilicious.com"));
10 CHECK_NOTNULL(tld
.get_registered_domain("yahoo.com"));
11 CHECK_NOTNULL(tld
.get_registered_domain("google.com"));
13 CHECK_NOTNULL(tld
.get_registered_domain("foo.blogspot.com.ar"));
15 CHECK(!strcmp(tld
.get_registered_domain("pi.digilicious.com"),
18 CHECK(!strcmp(tld
.get_registered_domain("outmail14.phi.meetup.com"),
21 CHECK(nullptr == tld
.get_registered_domain("not_a_domain_at_all"));
22 CHECK(nullptr == tld
.get_registered_domain(".com"));
23 CHECK(nullptr == tld
.get_registered_domain("."));
25 CHECK(!strcmp(tld
.get_registered_domain("reward.yournewestbonuspoints.com"),
26 "yournewestbonuspoints.com"));