Adding all the files for an integer version of Funky: Groovy
[Funky.git] / test / lib / Funky / Groovy.h
blob8abedc30bd07c18b35afa8a1310f1b1683f4e67f
1 /* Funky: a light-weight embeddable programming language
2 * Copyright (c) 2007, Ronald Landheer-Cieslak
3 * All rights reserved
4 *
5 * This is free software. You may distribute it and/or modify it and
6 * distribute modified forms provided that the following terms are met:
8 * * Redistributions of the source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer;
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
12 * the documentation and/or other materials provided with the distribution;
13 * * None of the names of the authors of this software may be used to endorse
14 * or promote this software, derived software or any distribution of this
15 * software or any distribution of which this software is part, without
16 * prior written permission from the authors involved;
17 * * Unless you have received a written statement from Ronald Landheer-Cieslak
18 * that says otherwise, the terms of the GNU General Public License, as
19 * published by the Free Software Foundation, version 2 or (at your option)
20 * any later version, also apply.
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
34 #ifndef _funky_tests_groovytest_h
35 #define _funky_tests_groovytest_h
37 #include <cppunit/extensions/HelperMacros.h>
38 #include <Funky/Groovy.h>
40 class GroovyTest : public CPPUNIT_NS::TestFixture
42 // Tests registration
43 CPPUNIT_TEST_SUITE( GroovyTest );
44 CPPUNIT_TEST(tryScript01);
45 CPPUNIT_TEST(tryScript02);
46 CPPUNIT_TEST(tryScript03);
47 CPPUNIT_TEST(tryScript04);
48 CPPUNIT_TEST(tryScript05);
49 CPPUNIT_TEST(tryScript06);
50 CPPUNIT_TEST(tryScript07);
51 CPPUNIT_TEST(tryScript08);
52 CPPUNIT_TEST(tryScript09);
53 CPPUNIT_TEST(tryScript10);
54 CPPUNIT_TEST(tryScript11);
55 CPPUNIT_TEST(tryScript12);
56 CPPUNIT_TEST(tryScript13);
57 CPPUNIT_TEST(tryScript14);
58 CPPUNIT_TEST(tryScript15);
59 CPPUNIT_TEST(tryScript16);
60 CPPUNIT_TEST(tryScript17);
61 CPPUNIT_TEST(tryScript18);
62 CPPUNIT_TEST(tryScript19);
63 CPPUNIT_TEST(tryScript20);
64 CPPUNIT_TEST(tryParseError01);
65 CPPUNIT_TEST(tryParseError02);
66 CPPUNIT_TEST(tryParseError03);
67 CPPUNIT_TEST(tryParseError04);
68 CPPUNIT_TEST(tryParseError05);
69 CPPUNIT_TEST(tryParseError06);
70 CPPUNIT_TEST(tryParseError07);
71 CPPUNIT_TEST(tryParseError08);
72 CPPUNIT_TEST_SUITE_END();
74 public:
75 virtual void setUp();
76 virtual void tearDown();
78 protected:
79 void tryScript01();
80 void tryScript02();
81 void tryScript03();
82 void tryScript04();
83 void tryScript05();
84 void tryScript06();
85 void tryScript07();
86 void tryScript08();
87 void tryScript09();
88 void tryScript10();
89 void tryScript11();
90 void tryScript12();
91 void tryScript13();
92 void tryScript14();
93 void tryScript15();
94 void tryScript16();
95 void tryScript17();
96 void tryScript18();
97 void tryScript19();
98 void tryScript20();
99 void tryParseError01();
100 void tryParseError02();
101 void tryParseError03();
102 void tryParseError04();
103 void tryParseError05();
104 void tryParseError06();
105 void tryParseError07();
106 void tryParseError08();
107 private:
108 Funky::Groovy groovy_;
109 int parms_[3];
112 #endif