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 | |
---|
1 | import unittest
|
---|
2 | from tudelft.utilities.tools.safehash import safehash
|
---|
3 |
|
---|
4 | class 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.