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'))
def test_hashing_a_string_with_spaces_and_punctuation(self): mh = NaiveHashTable() self.assertIsNotNone(mh.hash("it's a beautiful day in the \ neighborhood"))