BIND 10 trac1470, updated. ad1fd67bc72d8a050b58496fab79c4aeeeec1f44 [1470] Update test for the const removeIdentical() method
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Dec 16 15:09:11 UTC 2011
The branch, trac1470 has been updated
via ad1fd67bc72d8a050b58496fab79c4aeeeec1f44 (commit)
from 502cc85e6d101d89210cf8a1a41f06ea8b2412dd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ad1fd67bc72d8a050b58496fab79c4aeeeec1f44
Author: Stephen Morris <stephen at isc.org>
Date: Fri Dec 16 15:07:34 2011 +0000
[1470] Update test for the const removeIdentical() method
A previous change updated the test for removeIdentical(). This
change was omitted from the test for the const version.
-----------------------------------------------------------------------
Summary of changes:
src/lib/cc/tests/data_unittests.cc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/cc/tests/data_unittests.cc b/src/lib/cc/tests/data_unittests.cc
index 8ae77b1..d8624cb 100644
--- a/src/lib/cc/tests/data_unittests.cc
+++ b/src/lib/cc/tests/data_unittests.cc
@@ -573,6 +573,11 @@ TEST(Element, constRemoveIdentical) {
c = Element::fromJSON("{ \"a\": { \"b\": \"c\" } }");
EXPECT_EQ(*removeIdentical(a, b), *c);
+ a = Element::fromJSON("{ \"a\": 1, \"b\": 2, \"c\": 3 }");
+ b = Element::fromJSON("{ \"c\": 3, \"b\": 2 }");
+ c = Element::fromJSON("{ \"a\": 1 }");
+ EXPECT_EQ(*removeIdentical(a, b), *c);
+
EXPECT_THROW(removeIdentical(Element::create(1), Element::create(2)),
TypeError);
}
More information about the bind10-changes
mailing list