1.1 --- a/internal_tests/objectset.py Mon Oct 24 23:57:02 2011 +0200
1.2 +++ b/internal_tests/objectset.py Mon Oct 31 19:09:47 2011 +0100
1.3 @@ -1,6 +1,6 @@
1.4 #!/usr/bin/env python
1.5
1.6 -from micropython.common import ObjectSet
1.7 +from micropython.common import ObjectSet, combine_mapping_dicts
1.8
1.9 o1 = ObjectSet()
1.10 o1.add("a")
1.11 @@ -47,4 +47,16 @@
1.12 o3["c"].append("y")
1.13 print "o3 =", o3
1.14
1.15 +d1 = {'a' : [ObjectSet(['f', 'g']), ObjectSet(['f', 'h'])]}
1.16 +d2 = {'a' : [ObjectSet(['f']), ObjectSet(['e', 'f', 'g'])]}
1.17 +d3 = combine_mapping_dicts(d1, d2)
1.18 +print "d1 =", d1
1.19 +print "d2 =", d2
1.20 +print "d3 =", d3
1.21 +
1.22 +d4 = {'a' : None}
1.23 +d5 = combine_mapping_dicts(d1, d4)
1.24 +print "d4 =", d4
1.25 +print "d5 =", d5
1.26 +
1.27 # vim: tabstop=4 expandtab shiftwidth=4