Clean up some statement syntax in weighted_quantiles_buffer_test
MSVC did not like the previous syntax we had PiperOrigin-RevId: 290142505 Change-Id: I3575f5c7a366ba3ea7dce2eaa67864dc78408438
This commit is contained in:
parent
c9f7f636eb
commit
7b9b1de47b
@ -30,18 +30,8 @@ using BufferEntry =
|
||||
class WeightedQuantilesBufferTest : public ::testing::Test {};
|
||||
|
||||
TEST_F(WeightedQuantilesBufferTest, Invalid) {
|
||||
EXPECT_DEATH(
|
||||
({
|
||||
boosted_trees::quantiles::WeightedQuantilesBuffer<double, double>
|
||||
buffer(2, 0);
|
||||
}),
|
||||
"Invalid buffer specification");
|
||||
EXPECT_DEATH(
|
||||
({
|
||||
boosted_trees::quantiles::WeightedQuantilesBuffer<double, double>
|
||||
buffer(0, 2);
|
||||
}),
|
||||
"Invalid buffer specification");
|
||||
EXPECT_DEATH(new Buffer(2, 0), "Invalid buffer specification");
|
||||
EXPECT_DEATH(new Buffer(0, 2), "Invalid buffer specification");
|
||||
}
|
||||
|
||||
TEST_F(WeightedQuantilesBufferTest, PushEntryNotFull) {
|
||||
@ -92,7 +82,7 @@ TEST_F(WeightedQuantilesBufferTest, PushEntryFullDeath) {
|
||||
// full.
|
||||
EXPECT_TRUE(buffer.IsFull());
|
||||
// Can't push any more entries before clearing.
|
||||
EXPECT_DEATH(({ buffer.PushEntry(6, 6); }), "Buffer already full");
|
||||
EXPECT_DEATH(buffer.PushEntry(6, 6), "Buffer already full");
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Loading…
x
Reference in New Issue
Block a user