Test.assert_equals(domain_name("http://google.com"), "google") Test.assert_equals(domain_name("http://google.co.jp"), "google") Test.assert_equals(domain_name("www.xakep.ru"), "xakep") Test.assert_equals(domain_name("https://youtube.com"), "youtube") Test.assert_equals(domain_name("https://fakewww.com"), "fakewww") Test.assert_equals(domain_name("https://wwwfakewww.com"), "wwwfakewww") Test.assert_equals(domain_name("maps.google.com"), "google")
- Test.assert_equals(domain_name("http://google.com"), "google")
- Test.assert_equals(domain_name("http://google.co.jp"), "google")
- Test.assert_equals(domain_name("www.xakep.ru"), "xakep")
- Test.assert_equals(domain_name("https://youtube.com"), "youtube")
- Test.assert_equals(domain_name("https://fakewww.com"), "fakewww")
Test.assert_equals(domain_name("https://wwwfakewww.com"), "wwwfakewww")- Test.assert_equals(domain_name("https://wwwfakewww.com"), "wwwfakewww")
- Test.assert_equals(domain_name("maps.google.com"), "google")