Skip to content

Commit

Permalink
✅ Add test to cover behavior when names_view is constructed from an e…
Browse files Browse the repository at this point in the history
…mpty network.
  • Loading branch information
Drewniok committed Mar 28, 2024
1 parent 9760dbf commit 8fb4a11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/views/names_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ TEST_CASE( "create names view and test API", "[names_view]" )
template<typename Ntk>
void test_copy_names_view()
{
Ntk ntk_empty;
names_view<Ntk> new_named_ntk_empty = ntk_empty;
CHECK( new_named_ntk_empty.get_network_name() == "" );

Ntk ntk;
auto const a = ntk.create_pi();
auto const b = ntk.create_pi();
Expand Down

0 comments on commit 8fb4a11

Please sign in to comment.