Mercurial > code
view C++/Tests/Luae/TestLuae.h @ 236:ff2db0ed78f1
* Import GoogleTest
* Start testing of OptionParser
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 04 Jul 2014 22:16:04 +0200 |
parents | 927c4f3b8a88 |
children |
line wrap: on
line source
/* * TestLuae.h -- test the Luae class * * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _TEST_LUAE_H_ #define _TEST_LUAE_H_ #include <cppunit/extensions/HelperMacros.h> #include <cppunit/TestFixture.h> class TestLuae : public CppUnit::TestFixture { private: CPPUNIT_TEST_SUITE(TestLuae); CPPUNIT_TEST(pushPoint); CPPUNIT_TEST(pushObject); CPPUNIT_TEST(pushShared); CPPUNIT_TEST(pushSharedTwice); CPPUNIT_TEST(preload); CPPUNIT_TEST(require); CPPUNIT_TEST(testnil); CPPUNIT_TEST(testbool); CPPUNIT_TEST(testint); CPPUNIT_TEST(testlong); CPPUNIT_TEST(testdouble); CPPUNIT_TEST(teststring); CPPUNIT_TEST(testustring); CPPUNIT_TEST(optionalbool); CPPUNIT_TEST(optionalint); CPPUNIT_TEST(optionallong); CPPUNIT_TEST(optionaldouble); CPPUNIT_TEST(optionalstring); CPPUNIT_TEST(optionalustring); CPPUNIT_TEST_SUITE_END(); public: void pushPoint(); void pushObject(); void pushShared(); void pushSharedTwice(); void preload(); void require(); void testnil(); void testbool(); void testint(); void testlong(); void testdouble(); void teststring(); void testustring(); void optionalbool(); void optionalint(); void optionallong(); void optionaldouble(); void optionalstring(); void optionalustring(); }; #endif // !_TEST_LUAE_H_