コード例 #1
0
 def test_to_see_if_i_hash_keys_correctly(self):  # passes
     mh = NaiveHashTable()
     self.assertEqual(mh.hash('hello'), 2)
コード例 #2
0
 def test_that_i_can_hash_a_string_with_punctuation(self):
     mh = NaiveHashTable()
     self.assertIsNotNone(mh.hash("it's"))
コード例 #3
0
 def test_hashing_a_string_with_spaces_and_punctuation(self):
     mh = NaiveHashTable()
     self.assertIsNotNone(
         mh.hash("it's a beautiful day in the \
                                    neighborhood"))
コード例 #4
0
 def test_that_i_can_hash_a_string_with_spaces(self):
     mh = NaiveHashTable()
     self.assertIsNotNone(mh.hash('hello dave'))
コード例 #5
0
 def test_to_see_if_i_hash_keys_correctly(self):  # passes
     mh = NaiveHashTable()
     self.assertEqual(mh.hash('hello'), 2)
コード例 #6
0
 def test_hashing_a_string_with_spaces_and_punctuation(self):
     mh = NaiveHashTable()
     self.assertIsNotNone(mh.hash("it's a beautiful day in the \
                                    neighborhood"))
コード例 #7
0
 def test_that_i_can_hash_a_string_with_punctuation(self):
     mh = NaiveHashTable()
     self.assertIsNotNone(mh.hash("it's"))
コード例 #8
0
 def test_that_i_can_hash_a_string_with_spaces(self):
     mh = NaiveHashTable()
     self.assertIsNotNone(mh.hash('hello dave'))