*** empty log message ***
This commit is contained in:
parent
04dfda2282
commit
4691e7ac8e
2 changed files with 13 additions and 15 deletions
|
|
@ -158,7 +158,7 @@ alltests: alltests.cc ledger
|
|||
alltests.cc -L. -L.libs -lamounts -lledger
|
||||
|
||||
runtests: alltests
|
||||
./alltests && tests/regress && tests/regtest
|
||||
LD_LIBRARY_PATH=.libs ./alltests && tests/regress && tests/regtest
|
||||
|
||||
verify: runtests
|
||||
python tests/runtests.py
|
||||
|
|
|
|||
|
|
@ -3,11 +3,7 @@
|
|||
|
||||
#include <cxxtest/TestSuite.h>
|
||||
|
||||
#include <textual.h>
|
||||
#include <xml.h>
|
||||
#include <binary.h>
|
||||
#include <gnucash.h>
|
||||
#include <qif.h>
|
||||
#include <ledger.h>
|
||||
|
||||
using namespace std;
|
||||
using namespace ledger;
|
||||
|
|
@ -24,6 +20,7 @@ public:
|
|||
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
||||
}
|
||||
|
||||
#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
|
||||
void testEmptyFileIsNotXMLFile()
|
||||
{
|
||||
stringstream emptyStream(stringstream::in);
|
||||
|
|
@ -33,15 +30,6 @@ public:
|
|||
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
||||
}
|
||||
|
||||
void testEmptyFileIsNotBinaryFile()
|
||||
{
|
||||
stringstream emptyStream(stringstream::in);
|
||||
binary_parser_t binaryParser;
|
||||
TS_ASSERT(!binaryParser.test(emptyStream));
|
||||
TS_ASSERT(emptyStream.good());
|
||||
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
||||
}
|
||||
|
||||
void testEmptyFileIsNotGnuCashFile()
|
||||
{
|
||||
stringstream emptyStream(stringstream::in);
|
||||
|
|
@ -50,6 +38,16 @@ public:
|
|||
TS_ASSERT(emptyStream.good());
|
||||
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
||||
}
|
||||
#endif
|
||||
|
||||
void testEmptyFileIsNotBinaryFile()
|
||||
{
|
||||
stringstream emptyStream(stringstream::in);
|
||||
binary_parser_t binaryParser;
|
||||
TS_ASSERT(!binaryParser.test(emptyStream));
|
||||
TS_ASSERT(emptyStream.good());
|
||||
TS_ASSERT_EQUALS(0, emptyStream.tellg());
|
||||
}
|
||||
|
||||
void testEmptyFileIsNotQIFFile()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue