コード例 #1
0
// Tests the EnableNullRejection functions
TEST(Classifier, EnableNullRejection) {
  Classifier classifier;
  {
  	const bool nullRejectionState = true;
  	EXPECT_TRUE( classifier.enableNullRejection(nullRejectionState) );
  	EXPECT_TRUE( classifier.getNullRejectionEnabled() == nullRejectionState );
  }
  {
  	const bool nullRejectionState = false;
  	EXPECT_TRUE( classifier.enableNullRejection(nullRejectionState) );
  	EXPECT_TRUE( classifier.getNullRejectionEnabled() == nullRejectionState );
  }
}