File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -758,6 +758,29 @@ mod tests {
758
758
} ) ;
759
759
}
760
760
761
+ #[ test]
762
+ fn link_samefile_union ( ) {
763
+ link_test ( "../../testdata/default/linking/samefile_union" , |linker| {
764
+ linker
765
+ . assert_dependencies (
766
+ "default/linking/samefile_union/SameFileUnion.t.sol:UsesBoth" . to_string ( ) ,
767
+ vec ! [
768
+ (
769
+ "default/linking/samefile_union/Libs.sol:LInit" . to_string( ) ,
770
+ Address :: from_str( "0x5a443704dd4b594b382c22a083e2bd3090a6fef3" )
771
+ . unwrap( ) ,
772
+ ) ,
773
+ (
774
+ "default/linking/samefile_union/Libs.sol:LRun" . to_string( ) ,
775
+ Address :: from_str( "0x47e9fbef8c83a1714f1951f142132e6e90f5fa5d" )
776
+ . unwrap( ) ,
777
+ ) ,
778
+ ] ,
779
+ )
780
+ . test_with_sender_and_nonce ( Address :: default ( ) , 1 ) ;
781
+ } ) ;
782
+ }
783
+
761
784
#[ test]
762
785
fn linking_failure ( ) {
763
786
let linker = LinkerTest :: new ( & testdata ( ) . join ( "default/linking/simple" ) , true ) ;
You can’t perform that action at this time.
0 commit comments