testMath.cc
Go to the documentation of this file.
73 return TypeToString<S>() + ": " + OperandToString(a) + " + " + OperandToString(b) + " + " + OperandToString(c);
114 SumToString<S>(args...) + " = " + OperandToString(expected) + " rather than " + OperandToString(sum),
Definition: testMath.cc:124
Definition: dns_internal.cc:189
implements test program's main() function while enabling customization
Definition: unitTestMain.h:25
CPPUNIT_TEST_SUITE(TestMath)
static void TestOverflowForEitherSummationType(const A a, const B b)
checks that a+b and similar sums overflow for summation types A and B
Definition: testMath.cc:171
Definition: testMath.cc:98
static void TestOrder(const A a, const B b)
checks that the summation outcome is unaffected by the order of operands
Definition: testMath.cc:162
static void TestSuccessForFirstSummationType(const A a, const B b)
Definition: testMath.cc:181
static void TestWithZeros(const A a, const B b)
checks that the summation outcome is unaffected by (not) adding zeros
Definition: testMath.cc:141
CPPUNIT_TEST_SUITE_END()
CPPUNIT_TEST_SUITE_REGISTRATION(TestMath)
CPPUNIT_TEST(testNaturalSum)
Definition: testMath.cc:14
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products