Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Caha committed Oct 11, 2024
1 parent 24ab1ab commit 75460a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,11 @@ TEST( ApiTest, DatasetRemoval )
EXPECT_EQ( MDAL_Status::None, s );
ASSERT_EQ( 5, MDAL_M_datasetGroupCount( m ) );

// try to remove from bad mesh
MDAL_M_RemoveDatasetGroup( nullptr, -1 );
s = MDAL_LastStatus();
EXPECT_EQ( MDAL_Status::Err_IncompatibleMesh, s );

// remove non existing dataset
MDAL_M_RemoveDatasetGroup( m, -1 );
s = MDAL_LastStatus();
Expand Down

0 comments on commit 75460a9

Please sign in to comment.