Пример #1
0
 def test_hashing(self):
     self.assertEqual(RT.hash(RT.symbol(u"foo")),
                      RT.hash(RT.symbol(u"foo")))
Пример #2
0
 def test_hashing(self):
     self.assertEqual(RT.hash(RT.symbol(u"foo")), RT.hash(RT.symbol(u"foo")))
Пример #3
0
 def test_hashing_things(self):
     self.assertEqual(RT.hash(u"42"), RT.hash(u"42"))
     self.assertEqual(RT.hash(True), RT.hash(True))
     self.assertEqual(RT.hash(None), RT.hash(None))
     self.assertEqual(RT.hash(42.0), RT.hash(42.0))
Пример #4
0
 def test_int_hashing(self):
     self.assertEqual(RT.hash(42), RT.hash(42))
Пример #5
0
 def test_hashing_things(self):
     self.assertEqual(RT.hash(u"42"), RT.hash(u"42"))
     self.assertEqual(RT.hash(True), RT.hash(True))
     self.assertEqual(RT.hash(None), RT.hash(None))
     self.assertEqual(RT.hash(42.0), RT.hash(42.0))
Пример #6
0
 def test_int_hashing(self):
     self.assertEqual(RT.hash(42), RT.hash(42))