def test_to_see_if_i_hash_keys_correctly(self):  # passes
     mh = NaiveHashTable()
     self.assertEqual(mh.hash('hello'), 2)
 def test_that_i_can_hash_a_string_with_punctuation(self):
     mh = NaiveHashTable()
     self.assertIsNotNone(mh.hash("it's"))
 def test_hashing_a_string_with_spaces_and_punctuation(self):
     mh = NaiveHashTable()
     self.assertIsNotNone(
         mh.hash("it's a beautiful day in the \
                                    neighborhood"))
 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'))