Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusTomlinson committed Mar 18, 2024
1 parent 05d4df5 commit e979ead
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,9 @@ TEST_CASE( "SignalBusTest" )
REQUIRE( signalBus.HasValue( 3 ) );
REQUIRE( *signalBus.GetValue<int>( 3 ) == 1 );

// no 5th input so should return false and nullptr
REQUIRE( !signalBus.HasValue( 4 ) );
REQUIRE( signalBus.GetValue<int>( 4 ) == nullptr );

REQUIRE( signalBus.GetType( 0 ) != signalBus.GetType( 1 ) );
REQUIRE( signalBus.GetType( 1 ) != signalBus.GetType( 2 ) );
REQUIRE( signalBus.GetType( 2 ) != signalBus.GetType( 3 ) );
// no 5th input so should return void type_info
REQUIRE( signalBus.GetType( 3 ) != signalBus.GetType( 4 ) );
}

TEST_CASE( "SerialTest" )
Expand Down Expand Up @@ -386,6 +380,7 @@ TEST_CASE( "BufferPerformanceTest" )
// Calculate reference efficiency

SignalBus testBus;
testBus.SetSignalCount( 1 );
auto measureRef = [&testBus]( std::shared_ptr<SlowCounter>& counter )
{
for ( int i = 0; i < 1000; ++i )
Expand Down

0 comments on commit e979ead

Please sign in to comment.