コード例 #1
0
 def test_9(self):
     books_type = [
         "YOUNGADULT", "YOUNGADULT", "YOUNGADULT", "YOUNGADULT",
         "YOUNGADULT"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
コード例 #2
0
 def test_7(self):
     books_type = [
         "SCIENCEFICTION", "SCIENCEFICTION", "SCIENCEFICTION",
         "SCIENCEFICTION", "SCIENCEFICTION"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
コード例 #3
0
 def test_8(self):
     books_type = [
         "ADVENTURE", "ADVENTURE", "ADVENTURE", "ADVENTURE", "ADVENTURE"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
コード例 #4
0
 def test_4(self):
     books_type = ["CRIME", "CRIME", "CRIME", "CRIME", "CRIME"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
コード例 #5
0
 def test_5(self):
     books_type = ["TRAVEL", "TRAVEL", "TRAVEL", "TRAVEL", "TRAVEL"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
コード例 #6
0
 def test_2(self):
     books_type = [
         "PHILOSOPHY", "PHILOSOPHY", "PHILOSOPHY", "PHILOSOPHY",
         "PHILOSOPHY"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
コード例 #7
0
 def test_3(self):
     books_type = [
         "BIOGRAPHY", "BIOGRAPHY", "BIOGRAPHY", "BIOGRAPHY", "BIOGRAPHY"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
コード例 #8
0
 def test_1(self):
     books_type = ["HISTORY", "HISTORY", "HISTORY", "HISTORY", "HISTORY"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
コード例 #9
0
 def test_f(self):
     books_type = ["NONE", "NONE", "NONE", "NONE", "NONE"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), -1)
コード例 #10
0
 def test_e(self):
     books_type = [
         "BIOGRAPHY", "PHILOSOPHY", "CLASSIC", "HISTORY", "HORROR"
     ]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
コード例 #11
0
 def test_c(self):
     books_type = ["HORROR", "HORROR", "HORROR", "HORROR", "HORROR"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)
コード例 #12
0
 def test_b(self):
     books_type = ["HORROR", "CRIME", "YOUNGADULT", "SCIENCE", "CRIME"]
     self.assertAlmostEqual(interface1_new.group(books, books_type), 1)