2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 21:18:02 +00:00

[master] Use equality operator to compare iterators in unit test.

This commit is contained in:
Marcin Siodelski 2015-03-18 22:12:03 +01:00
parent b8eb610b5c
commit c87fab72f4

View File

@ -2164,11 +2164,11 @@ TEST_F(Dhcpv6SrvTest, rsoo) {
client.doSARR();
// Option 110 should be copied to the client
EXPECT_NE(client.config_.options_.find(110), client.config_.options_.end());
EXPECT_FALSE(client.config_.options_.find(110) == client.config_.options_.end());
// Options 109 and 111 should not be copied (they are not RSOO-enabled)
EXPECT_EQ(client.config_.options_.find(109), client.config_.options_.end());
EXPECT_EQ(client.config_.options_.find(111), client.config_.options_.end());
EXPECT_TRUE(client.config_.options_.find(109) == client.config_.options_.end());
EXPECT_TRUE(client.config_.options_.find(111) == client.config_.options_.end());
}
// Test that the server processes RSOO (Relay Supplied Options option) correctly