コード例 #1
0
 def test_https_www_hrank_com_shoudl_be_found(self):
     text = "https://www.hackerrank.com"
     res = dtdn.solve(text)
     self.assertEqual(res, ["hackerrank.com"])
コード例 #2
0
 def test_boxtv_com(self):
     text = "https://boxtv.com"
     res = dtdn.solve(text)
     self.assertEqual(res, ["boxtv.com"])
コード例 #3
0
 def test_coursera_placement_resumes_s3_amazonaws_com_should_be_found(self):
     text = "http://coursera-placement-resumes.s3.amazonaws.com"
     res = dtdn.solve(text)
     self.assertEqual(res, ["coursera-placement-resumes.s3.amazonaws.com"])
コード例 #4
0
 def test_abc_ddd_jpg_should_be_not_found(self):
     text = "abc.xyz.jpg"
     res = dtdn.solve(text)
     self.assertEqual(res, [])
コード例 #5
0
 def test_metric_ind_rediff_com_should_be_found(self):
     text = "https://metric.ind.rediff.com"
     res = dtdn.solve(text)
     self.assertEqual(res, ["metric.ind.rediff.com"])
コード例 #6
0
 def test_https_abc_xyz_com_https_www_hrank_com_shoudl_be_found(self):
     text = "https://ww2.hackerrank.com https://abc.xyz.com/jobs"
     res = dtdn.solve(text)
     self.assertEqual(res, ["abc.xyz.com", "hackerrank.com"])
コード例 #7
0
 def test_http_abc_xyz_com___shoudl_be_found(self):
     text = "http://abc.xyz.com__/jobs"
     res = dtdn.solve(text)
     self.assertEqual(res, ["abc.xyz.com"])
コード例 #8
0
 def test_coursera_placement_resumes_s3_amazonaws_com_should_be_found(self):
     text = "http://coursera-placement-resumes.s3.amazonaws.com"
     res = dtdn.solve(text)
     self.assertEqual(res, ["coursera-placement-resumes.s3.amazonaws.com"])
コード例 #9
0
 def test_https_www_hrank_com_shoudl_be_found(self):
     text = "https://www.hackerrank.com"
     res = dtdn.solve(text)
     self.assertEqual(res, ["hackerrank.com"])
コード例 #10
0
 def test_boxtv_com(self):
     text = "https://boxtv.com"
     res = dtdn.solve(text)
     self.assertEqual(res, ["boxtv.com"])
コード例 #11
0
 def test_metric_ind_rediff_com_should_be_found(self):
     text = "https://metric.ind.rediff.com"
     res = dtdn.solve(text)
     self.assertEqual(res, ["metric.ind.rediff.com"])
コード例 #12
0
 def test_abc_ddd_jpg_should_be_not_found(self):
     text = "abc.xyz.jpg"
     res = dtdn.solve(text)
     self.assertEqual(res, [])
コード例 #13
0
 def test_http_abc_xyz_com___shoudl_be_found(self):
     text = "http://abc.xyz.com__/jobs"
     res = dtdn.solve(text)
     self.assertEqual(res, ["abc.xyz.com"])
コード例 #14
0
 def test_https_abc_xyz_com_https_www_hrank_com_shoudl_be_found(self):
     text = "https://ww2.hackerrank.com https://abc.xyz.com/jobs"
     res = dtdn.solve(text)
     self.assertEqual(res, ["abc.xyz.com", "hackerrank.com"])