Parcourir la source

[2432] Change equality check style

Mukund Sivaraman il y a 12 ans
Parent
commit
e4a823ad34
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/lib/dns/tests/rrset_collection_unittest.cc

+ 2 - 1
src/lib/dns/tests/rrset_collection_unittest.cc

@@ -135,8 +135,9 @@ TEST_F(RRsetCollectionTest, addAndRemove) {
 }
 
 TEST_F(RRsetCollectionTest, iteratorTest) {
+    // The collection must not be empty.
     RRsetCollection::iterator iter = collection.begin();
-    EXPECT_TRUE(iter != collection.end());
+    EXPECT_NE(collection.end(), iter);
 
     // Here, we just count the records and do some basic tests on them.
     size_t count = 0;