/* ==================================================================== * Copyright (c) 2003-2006, Martin Hauner * http://subcommander.tigris.org * * Subcommander is licensed as described in the file doc/COPYING, which * you should have received as part of this distribution. * ==================================================================== */ #ifndef _TEXTMODEL_TEST_H #define _TEXTMODEL_TEST_H #include class TextModel; class TextModelTest : public CppUnit::TestCase { public: TextModelTest(); virtual ~TextModelTest(); static CppUnit::Test *suite(); void setUp(); void tearDown(); // Tests void testSingleCharAdd(); void testEmptyDelLeft(); void testEmptyDelRight(); void testAddReturn(); void testAddMultiLineLE(); void testAddMultiLine(); void testCalcNearestCursorPos(); private: TextModel* _text; }; #endif // _TEXTMODEL_TEST_H