// Tests the default constructor TEST(HighPassFilter, TestDefaultConstructor) { HighPassFilter hpf; //Check the id's matches EXPECT_TRUE( hpf.getId() == HighPassFilter::getId() ); //Check the hpf is not trained EXPECT_TRUE( !hpf.getTrained() ); }
// Tests the equals operator TEST(HighPassFilter, TestEqualsOperator) { HighPassFilter hpf; //Check the id's matches EXPECT_TRUE( hpf.getId() == HighPassFilter::getId() ); //Check the hpf is not trained EXPECT_TRUE( !hpf.getTrained() ); HighPassFilter hpf2 = hpf; //Check the id's matches EXPECT_TRUE( hpf2.getId() == HighPassFilter::getId() ); //Check the hpf is not trained EXPECT_TRUE( !hpf2.getTrained() ); }