aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJ08nY2024-04-11 14:53:13 +0200
committerJ08nY2024-04-11 14:53:13 +0200
commit4e5cc1f7badc3d1e660c3afd3fa05444d543f26b (patch)
treee2720f4bde30d993f6a6edbca25d473e2f82effd /test
parentde58fe75e6064f1cfd45f6d3d3d539b6422c247b (diff)
downloadpyecsca-4e5cc1f7badc3d1e660c3afd3fa05444d543f26b.tar.gz
pyecsca-4e5cc1f7badc3d1e660c3afd3fa05444d543f26b.tar.zst
pyecsca-4e5cc1f7badc3d1e660c3afd3fa05444d543f26b.zip
Fix None codomain addition in dmap.
Diffstat (limited to 'test')
-rw-r--r--test/sca/test_tree.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/sca/test_tree.py b/test/sca/test_tree.py
index 03cb041..897ffd5 100644
--- a/test/sca/test_tree.py
+++ b/test/sca/test_tree.py
@@ -22,6 +22,11 @@ def test_map():
assert dmap.domain == [1, 2]
assert dmap.codomain == {5, 3, 7, None}
+ io_map_full = {"a": {1: 5, 2: 7}, "b": {1: 3, 2: 11}}
+ dmap = Map.from_io_maps(cfgs, io_map_full)
+ assert dmap.domain == [1, 2]
+ assert dmap.codomain == {5, 3, 7, 11}
+
def test_map_merge():
cfgs = {"a", "b"}