| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
Change-Id: Ie72531ebdc858a0122886a7a3cfe49185dc0ff76
Reviewed-on: https://gerrit.libreoffice.org/c/cppunit/+/101688
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
|
|
|
|
|
|
|
| |
Change-Id: I36ceddb5a8a1f8e96b36a2e851338366cda1808d
Reviewed-on: https://gerrit.libreoffice.org/85662
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
|
|
|
|
|
|
|
| |
Change-Id: I6ebc31181ccfe379be96e979cda3717a991cf513
Reviewed-on: https://gerrit.libreoffice.org/85663
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
|
| |
|
|
|
|
|
|
|
| |
Change-Id: I8a0d7a0b51b5c537dbcfa8fdd34e816605b1f32e
Reviewed-on: https://gerrit.libreoffice.org/71573
Reviewed-by: Tomáš Chvátal <tchvatal@suse.cz>
Tested-by: Tomáš Chvátal <tchvatal@suse.cz>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
doc/other_documentation.dox:
* add instructions to build documentation
* replace a dead link with it's archived version on WaybackMachine
doc/Money.dox:
* replace `configure.in` with `configure.ac`
* update MoneyApp.cpp with the version at `examples/money/MoneyApp.cpp`
* remove all occurrences of `#include "stdafx.h"` (stdafx.h does not exist in this example)
* replace all occurrences of CppUnit:: with CPPUNIT_NS::
* Undo a fix in commit 652d51e653568fbf652a248c7b9e01e72e6ec50f
* This commit fixed the following error:
```
Money( double amount, std::string currency )
: m_amount( amount )
, m_currency( m_currency )
```
But this error was introduced on purpose, so that the user can see that an assertion failed
* fix some spelling errors
* other minor edits
examples/money/MoneyTest.h:
* Updated to match doc/Money.dox
Change-Id: I4e90b1a3afadab94f7112c36fcb0d1c467169269
Reviewed-on: https://gerrit.libreoffice.org/67787
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
|
| |
|
|
|
|
|
|
|
|
|
| |
For more info, see: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
Change-Id: If27065b6d9c9245717ca24e0c0e1fa4c29bc3e5c
Reviewed-on: https://gerrit.libreoffice.org/67808
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
|
|
|
|
|
|
|
|
|
|
| |
Provide an extension trait message_to_string that allows client code
to call ASSERT_MESSAGE with their own string types.
Also provide a default extension trait that accepts std::ostream
messages.
Change-Id: I516f97063c34d86bc91c40e0ec147d5393e7b6ea
|
|
|
|
|
|
|
|
|
|
| |
This is similar to googletest's TEST_F() macro, allows to avoid spelling
out the test name in a suite only once, not 3 times.
Change-Id: I90804d271d046d8158678617d8db75ed6ca7c420
Reviewed-on: https://gerrit.libreoffice.org/61732
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
|
| |
|
|
|
|
|
|
|
| |
Change-Id: If42a50386402b7a601268cf8db80236c147009c1
Reviewed-on: https://gerrit.libreoffice.org/42206
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This allows to execute the same test with different parameters and
treats each execution as an own test. The change consists of two parts,
the TestCaller can now handle any callable which also makes it easy to
generate programatically more complex test cases as well as the new
CPPUNIT_TEST_PARAMETERIZED macro. That macro takes the test name as well
as an iteratable, e.g. std::initializer_list.
An example for this usage is:
class SimpleTest : public CppUnit::TestFixture
{
public:
CPPUNIT_TEST_SUITE(SimpleTest);
CPPUNIT_TEST_PARAMETERIZED(test, {1, 2, 3, 4});
CPPUNIT_TEST_SUITE_END();
void test(int i)
{
CPPUNIT_ASSERT(i < 5);
}
};
which will execute test 4 times with the values 1 to 4.
|
| |
|
| |
|
|
|
|
| |
... so check just for existence.
|
| |
|
|
|
|
|
|
| |
The asserter now has special handling to convert the enum class to a
std::string. This does not work without some template magic as enum
class has no implicit conversion to int.
|
| |
|
|
|
|
|
|
| |
These features will switch the used C++ version from C++03 to C++11. We
are also going to use std::unique_ptr instead of std::auto_ptr for the
c++11 mode.
|
|
|
|
|
|
|
|
|
| |
Now we support the following new macros:
- CPPUNIT_ASSERT_LESS
- CPPUNIT_ASSERT_GREATER
- CPPUNIT_ASSERT_LESSEQUAL
- CPPUNIT_ASSERT_GREATEREQUAL
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
.gitignore
autogen.sh
configure.in
doc/Makefile.am
examples/cppunittest/TestAssertTest.cpp
|
| |
| |
| |
| | |
-Werror -Wall -Wextra now works in make and in make check
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
configuration with VS2008 (due to incorrect configuration
being picked up).
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
src/cppunit/TestAssert.cpp (assertDoubleEquals): Moved finite & NaN
tests to include/cppunit/portability/FloatingPoint.h. Changed
implementation assertDoubleEquals to explicitly test for NaN
in case of non-finite values to force equality failure in the
presence of NaN. Previous implementation failed on Microsoft
Visual Studio 6 (on this platform: NaN == NaN).
* examples/cppunittest/TestAssertTest.cpp: Add more unit tests to
test the portable floating-point primitive. Added missing
include <limits>.
* include/cppunit/portability/Makefile.am:
* include/cppunit/portability/FloatingPoint.h: Added file. Extracted
isfinite() from TestAssert.cpp.
* include/cppunit/config-evc4:
* include/cppunit/config-msvc6: Added support for _finite().
|
|
|
|
| |
assertion_traits<double>::toString().
|
|
|
|
|
|
|
|
|
|
| |
testAssertDoubleNotEquals2.
* examples/cppunittest/TestAssertTest.cpp:
* examples/cppunittest/TestAssertTest.h: Remove declaration of
unimplemented functions testAssertDoubleNotEquals1 and
testAssertDoubleNotEquals2. Factor new method
testAssertDoubleNonFinite out of existing testAssertDoubleEquals.
|
|
|
|
| |
non-finite values.
|
| |
|
|
|
|
| |
and CPPUNIT_ASSERT_NO_THROW().
|
|
|
|
| |
It is expected to fail, so mark it using XFAIL_TESTS in Makefile.am.
|
|
|
|
|
|
| |
src/msvc6/TesRunner/TestRunner.rc:
* src/msvc6/testpluginrunner/TestPlugInRunner.rc: Fixed bug #1528212
(some resources wrongly tagged as French).
|
| |
|
| |
|
|
|
|
|
|
| |
integrated Ernst patch for QtTestRunner and Qt 3.x.
* upgrade QtTestRunner to Qt 3.x
* enhanced qmake project files to handle multiple build configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
include/cppunit/config/SourcePrefix.h: disable warning #4996
(sprintf is deprecated) for visual studio 2005.
* include/cppunit/TestAssert.h: use sprintf_s instead of sprintf for
visual studio 2005.
* examples/ClockerPlugIn/ClockerPlugIn.cpp
* examples/DumperPlugIn/DumperPlugIn.cpp: use SourcePrefix.h. Fixed
wrong macro usage to implement DllMain.
* examples/msvc6/HostApp/ExamplesTestCase.h
* examples/msvc6/HostApp/ExamplesTestCase.cpp
* examples/simple/ExamplesTestCase.h
* examples/simple/ExamplesTestCase.cpp: removed divideByZero test case
as it cause some crash on some platforms.
|
|
|
|
|
| |
removed most warning when compiling with vc++ 6sp6.
* added assert equal usage
|