Skip to content

Commit 2307850

Browse files
committed
Add mypyc test for similar module full names
1 parent 5e585d0 commit 2307850

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mypyc/test/test_namegen.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ def test_make_module_translation_map(self) -> None:
3535
"fu.bar": "fu.bar.",
3636
"foo.baz": "baz.",
3737
}
38+
assert make_module_translation_map(["foo", "foo.foo", "bar.foo", "bar.foo.bar.foo"]) == {
39+
"foo": "foo.",
40+
"foo.foo": "foo.foo.",
41+
"bar.foo": "bar.foo.",
42+
"bar.foo.bar.foo": "foo.bar.foo.",
43+
}
3844

3945
def test_name_generator(self) -> None:
4046
g = NameGenerator([["foo", "foo.zar"]])

0 commit comments

Comments
 (0)