diff options
author | John Wiegley <johnw@newartisans.com> | 2008-04-12 01:37:50 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-05-08 02:50:18 -0400 |
commit | 289cc97d45bbd3a8cdfcc3371ade71715b75b000 (patch) | |
tree | 2b1ab8575232260c4eb779282e03f64783ccb756 /tests/textual.h | |
parent | 627769ccc88ae15c92c5c2e5896bb1d96f52e385 (diff) | |
download | fork-ledger-289cc97d45bbd3a8cdfcc3371ade71715b75b000.tar.gz fork-ledger-289cc97d45bbd3a8cdfcc3371ade71715b75b000.tar.bz2 fork-ledger-289cc97d45bbd3a8cdfcc3371ade71715b75b000.zip |
Exchanged old test files for the new testing code in was-v3.0.
Diffstat (limited to 'tests/textual.h')
-rw-r--r-- | tests/textual.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/textual.h b/tests/textual.h deleted file mode 100644 index adf24c77..00000000 --- a/tests/textual.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef __TESTTEXTUALJOURNAL_H -#define __TESTTEXTUALJOURNAL_H - -#include <cxxtest/TestSuite.h> - -#include <textual.h> -#include <config.h> - -using namespace std; -using namespace ledger; - -class TestTextualJournal : public CxxTest::TestSuite -{ -public: - void testEmptyFileIsTextualFile() - { - stringstream j(stringstream::in); - - j << "2005/10/15 Something" << endl; - j << " A $ 42" << endl; - j << " B" << endl; - - textual_parser_t textualParser; - TS_ASSERT(textualParser.test(j)); - TS_ASSERT(j.good()); - TS_ASSERT_EQUALS(0, j.tellg()); - - config_t config; - std::auto_ptr<journal_t> journal(new journal_t); - textualParser.parse(j, config, journal.get()); - } -}; - -#endif // __TESTTEXTUALJOURNAL_H |