Skip to content

Commit

Permalink
fixup test
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusaaguiar committed Apr 28, 2023
1 parent 92fe61b commit 2750919
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions test/libsolidity/SolidityNatspecJSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,38 @@ BOOST_AUTO_TEST_CASE(emit_same_signature_event_different_libraries)
}
)ABCDEF";
checkNatspec(sourceCode, "C", userDoc, true);

char const* libraryDevDoc = R"ABCDEF(
{
"events":
{
"SameSignatureEvent(uint16)":
{
"details": "This should not appear in Contract C dev doc"
}
},
"kind": "user",
"methods": {},
"version": 1
}
)ABCDEF";
checkNatspec(sourceCode, "L1", libraryDevDoc, false);

char const* libraryUserDoc = R"ABCDEF(
{
"events":
{
"SameSignatureEvent(uint16)":
{
"notice": "This event is defined in Library L1"
}
},
"kind": "user",
"methods": {},
"version": 1
}
)ABCDEF";
checkNatspec(sourceCode, "L1", libraryUserDoc, true);
}

BOOST_AUTO_TEST_CASE(emit_same_signature_event_library_inherited)
Expand Down

0 comments on commit 2750919

Please sign in to comment.