diff options
author | John Wiegley <johnw@newartisans.com> | 2006-09-03 18:40:28 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:33 -0400 |
commit | f261d82df511d1ca3efb69ec0b6422ec862ffeb2 (patch) | |
tree | e8f2eab1947447944344161bbab25c1a1a6ad3fa /tests | |
parent | 4691e7ac8e7cdf7e7823327f3caf52829e383cb7 (diff) | |
download | fork-ledger-f261d82df511d1ca3efb69ec0b6422ec862ffeb2.tar.gz fork-ledger-f261d82df511d1ca3efb69ec0b6422ec862ffeb2.tar.bz2 fork-ledger-f261d82df511d1ca3efb69ec0b6422ec862ffeb2.zip |
*** empty log message ***
Diffstat (limited to 'tests')
-rw-r--r-- | tests/parser.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/parser.h b/tests/parser.h index 439d478f..aa1a3a74 100644 --- a/tests/parser.h +++ b/tests/parser.h @@ -20,25 +20,27 @@ public: TS_ASSERT_EQUALS(0, emptyStream.tellg()); } -#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) void testEmptyFileIsNotXMLFile() { +#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) stringstream emptyStream(stringstream::in); xml_parser_t xmlParser; TS_ASSERT(!xmlParser.test(emptyStream)); TS_ASSERT(emptyStream.good()); TS_ASSERT_EQUALS(0, emptyStream.tellg()); +#endif } void testEmptyFileIsNotGnuCashFile() { +#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE) stringstream emptyStream(stringstream::in); gnucash_parser_t gnucashParser; TS_ASSERT(!gnucashParser.test(emptyStream)); TS_ASSERT(emptyStream.good()); TS_ASSERT_EQUALS(0, emptyStream.tellg()); - } #endif + } void testEmptyFileIsNotBinaryFile() { |