[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 195d544 07/12: Improve explanation of certain
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 195d544 07/12: Improve explanation of certain unit tests |
Date: |
Sat, 24 Oct 2020 16:51:34 -0400 (EDT) |
branch: master
commit 195d5444cf135be0b1e239bccaf66300f7ef7b20
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Improve explanation of certain unit tests
---
xml_serialize_test.cpp | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/xml_serialize_test.cpp b/xml_serialize_test.cpp
index c6618c6..1ebe87c 100644
--- a/xml_serialize_test.cpp
+++ b/xml_serialize_test.cpp
@@ -153,9 +153,18 @@ int test_main(int, char*[])
// documentation for value_cast<>().
BOOST_TEST(d0 == d1);
BOOST_TEST_EQUAL(d0, d1);
+
BOOST_TEST(s0 == s1);
BOOST_TEST_EQUAL(s0, s1);
- // BOOST_TEST_EQUAL(v0, v1); // No--couldn't display if not equal.
+
+ // BOOST_TEST_EQUAL() inserts unequal values into an ostream, so
+ // it can only be used with streamable types (as above).
+
+ // For Containers, test both
+ // P: c0 == c1
+ // Q: c0.size() == c1.size()
+ // even though P implies Q, because Q AND ~P is easy to detect.
+
BOOST_TEST(v0 == v1);
BOOST_TEST_EQUAL(v0.size(), v1.size());
- [lmi-commits] [lmi] master updated (61277aa -> 4427d76), Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master 65f92f3 06/12: Refactor, Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master 75399fe 01/12: Improve documentation, Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master be4c0fd 05/12: Rename 'mete_*' functions for concinnity, Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master d71f9e8 02/12: Improve parameter names, Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master 9671a72 03/12: Rearrange for concinnity, Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master 195d544 07/12: Improve explanation of certain unit tests,
Greg Chicares <=
- [lmi-commits] [lmi] master fdb2a62 04/12: Clarify unit-test output, Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master 75cf29b 08/12: Rename local variables, Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master fb65723 09/12: Serialize pairs to and from xml, Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master d385546 10/12: Serialize associative-pair containers to and from xml, Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master 2ba9033 11/12: Improve a variable's name, Greg Chicares, 2020/10/24
- [lmi-commits] [lmi] master 4427d76 12/12: C++17-ize, Greg Chicares, 2020/10/24