From: JINMEI Tatuya Date: Thu, 22 Mar 2012 04:40:19 +0000 (-0700) Subject: [1688] additional test case of duplicate in the same section. X-Git-Tag: trac2351_base~226^2~116^2~66^2~10^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=847525d5ac7902c5eb90a5ecdaedf34ae3e73366;p=thirdparty%2Fkea.git [1688] additional test case of duplicate in the same section. the implementation already correctly handles this, so no need to update it. --- diff --git a/src/bin/auth/tests/query_unittest.cc b/src/bin/auth/tests/query_unittest.cc index 7e288f40e0..aae1838fbb 100644 --- a/src/bin/auth/tests/query_unittest.cc +++ b/src/bin/auth/tests/query_unittest.cc @@ -2446,7 +2446,8 @@ TEST_F(QueryTest, DuplicateNameRemoval) { // the overlap.) // // answer = 0 1 2 3 - // authority = 2 3 4 5 6 7 + // authority = 2 3 4 5 6 7... + // ...5 (duplicate in the same section) // additional = 0 3 7 8 // // If the duplicate removal works, we should end up with the following in @@ -2483,6 +2484,7 @@ TEST_F(QueryTest, DuplicateNameRemoval) { authority.insert(authority.end(), rrset_vector.begin() + 3, rrset_vector.begin() + 8); authority.push_back(rrset_vector[2]); + authority.push_back(rrset_vector[5]); std::vector additional; additional.insert(additional.end(), rrset_vector.begin() + 7,