source: utilitiespy/test/tools/safehashtest.py@ 1055

Last change on this file since 1055 was 1055, checked in by wouter, 5 months ago

#354 added safehash to utilities,
deployed utilities 1.0.8

File size: 293 bytes
Line 
1import unittest
2from tudelft.utilities.tools.safehash import safehash
3
4class SafeHashTest(unittest.TestCase):
5
6 def tests(self):
7 lst=[1,2,3]
8 safehash(lst)
9 safehash({'a':1})
10 safehash( set(lst))
11 safehash({'a':set(lst)})
12 # you can a set in a set...
13 #safehash(set([set(lst)]))
14
15
Note: See TracBrowser for help on using the repository browser.