def test_unique_words_count(self): self.assertEqual(3, unique_words_count(["apple", "banana", "apple", "pie"])) # 3 self.assertEqual(2, unique_words_count(["python", "python", "python", "ruby"])) # 2 self.assertEqual(1, unique_words_count(["HELLO!"] * 10))
def test_problem_statement_cases(self): self.assertEqual( 3, unique_words_count(["apple", "banana", "apple", "pie"])) self.assertEqual( 2, unique_words_count(["python", "python", "python", "ruby"])) self.assertEqual(1, unique_words_count(["HELLO!"] * 10)) self.assertEqual(0, unique_words_count([]))
def test_unique_words_count(self): self.assertEqual( 3, solution.unique_words_count(["apple", "banana", "apple", "pie"])) self.assertEqual( 2, solution.unique_words_count(["python", "python", "python", "ruby"]))
def test_unique_words(self): self.assertEqual( 3, solution.unique_words_count(['apple', 'banana', 'apple', 'pie'])) self.assertEqual( 2, solution.unique_words_count(["python", "python", "python", "ruby"])) self.assertEqual(1, solution.unique_words_count(["HELLO!"] * 10))
def test_unique_words_count(self): self.assertEqual( unique_words_count(["apple", "banana", "apple", "pie"]), 3) self.assertEqual( unique_words_count(["python", "python", "python", "ruby"]), 2) self.assertEqual(unique_words_count(["HELLO!"] * 10), 1) self.assertEqual( unique_words_count( ["HELLO!", "aa", "tt", "asd", "Kgr", "sdf", "aa", "oosdf"]), 7) self.assertEqual(unique_words_count(["HELLO!"] * 10 + ["78", "asdf"]), 3)
def test_unique_words_count1(self): self.assertEqual( 1, solution.unique_words_count(['python', 'python', 'python']))
def test_unique_words_count4(self): self.assertEqual(3, solution.unique_words_count(['aa', 'bb', 'cc']))
def test_two(self): self.assertEqual(2, unique_words_count(["python", "python", "python", "ruby"]))
def test_unique_words_count1(self): self.assertEqual(1, solution.unique_words_count(['python', 'python', 'python']))
def test_unique_words_count_1(self): self.assertEqual(3, solution.unique_words_count(["apple", "banana", "apple", "pie"]))
def test_unique_words_count(self): self.assertEqual(3, solution.unique_words_count(["apple", "banana", "apple", "pie"])) self.assertEqual(2, solution.unique_words_count(["python", "python", "python", "ruby"]))
def test_solution(self): self.assertEqual(3, unique_words_count(["apple", "banana", "apple", "pie"])) self.assertEqual(2, unique_words_count(["python", "python", "python", "ruby"])) self.assertEqual(1, unique_words_count(["HELLO!"] * 10)) self.assertEqual(0, unique_words_count([]))
def test_two(self): self.assertEquals( unique_words_count(["python", "python", "python", "ruby"]), 2)
def test_one(self): self.assertEquals( unique_words_count(["apple", "banana", "apple", "pie"]), 3)
def test_three(self): self.assertEquals(unique_words_count(["HELLO!"] * 10), 1)
def test_sum_of_min_and_max(self): self.assertEqual(3, unique_words_count(["apple", "banana", "apple", "pie"])) self.assertEqual(2, unique_words_count(["python", "python", "python", "ruby"])) self.assertEqual(1, unique_words_count(["HELLO!"] * 10))
def test_unique_words_count(self): self.assertEqual( 3, unique_words_count(["apple", "banana", "apple", "pie"])) self.assertEqual( 2, unique_words_count(["python", "python", "python", "ruby"])) self.assertEqual(1, unique_words_count(["HELLO!"] * 10))
def test_unique_words_count2(self): self.assertEqual(1, solution.unique_words_count(['']))
def test_correctness(self): self.assertEqual(unique_words_count(['this', 'is', 'madness', 'no', 'this' 'is', 'Sparta']), 6)
def test_problem_statement_cases(self): self.assertEqual(3, unique_words_count(["apple", "banana", "apple", "pie"])) self.assertEqual(2, unique_words_count(["python", "python", "python", "ruby"])) self.assertEqual(1, unique_words_count(["HELLO!"] * 10)) self.assertEqual(0, unique_words_count([]))
def test_unique_words_count_3(self): self.assertEqual(1, solution.unique_words_count(["HELLO!"] * 10))
def test_unique_words_count_1st(self): self.assertEqual(3, solution.unique_words_count(["apple", "banana", "apple", "pie"]))
def test_unique_words_count_2(self): self.assertEqual(2, solution.unique_words_count(["python", "python", "python", "ruby"]))
def test_unique_words_count(self): self.assertEqual(unique_words_count(["apple", "banana", "apple", "pie"]), 3) self.assertEqual(unique_words_count(["python", "python", "python", "ruby"]), 2) self.assertEqual(unique_words_count(["HELLO!"] * 10), 1) self.assertEqual(unique_words_count(["HELLO!", "aa", "tt", "asd", "Kgr", "sdf", "aa", "oosdf"]), 7) self.assertEqual(unique_words_count(["HELLO!"] * 10 + ["78", "asdf"]), 3)
def test_unique_words_count_3rd(self): self.assertEqual(1, solution.unique_words_count(["HELLO!"] * 10))
def test_unique_words_count_2nd(self): self.assertEqual(2, solution.unique_words_count(["python", "python", "python", "ruby"]))
def test_three(self): self.assertEqual(1, unique_words_count(["HELLO!"] * 10))
def test_unique_words(self): self.assertEqual(3, solution.unique_words_count(['apple', 'banana', 'apple', 'pie'])) self.assertEqual(2, solution.unique_words_count(["python", "python", "python", "ruby"])) self.assertEqual(1, solution.unique_words_count(["HELLO!"] * 10))
def test_one(self): self.assertEqual(3, unique_words_count(["apple", "banana", "apple", "pie"]))