one more test

This commit is contained in:
Jared Wasinger 2024-12-09 13:59:41 +07:00 committed by Felix Lange
parent 463c3b6dd4
commit f9186b712e
1 changed files with 11 additions and 0 deletions

View File

@ -247,5 +247,16 @@ func TestContractLinking(t *testing.T) {
'f': {}, 'g': {}, 'c': {}, 'd': {}, 'h': {}, 'f': {}, 'g': {}, 'c': {}, 'd': {}, 'h': {},
}) })
// test nested libraries that share deps at different levels of the tree.. with override.
testLinkCase(t, map[rune][]rune{
'a': {'b', 'c', 'd', 'e'},
'e': {'f', 'g', 'h', 'i', 'm'},
'i': {'j', 'k', 'l', 'm'}},
map[rune]struct{}{
'i': {},
},
map[rune]struct{}{
'a': {}, 'b': {}, 'c': {}, 'd': {}, 'e': {}, 'f': {}, 'g': {}, 'h': {}, 'm': {},
})
// TODO: same as the above case but nested one level of dependencies deep (?) // TODO: same as the above case but nested one level of dependencies deep (?)
} }