Salome HOME
Updated copyright comment
[modules/yacs.git] / src / py2yacs / Test / Py2yacsTest.hxx
1 // Copyright (C) 2006-2024  CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 #ifndef _Py2yacsTest_hxx_
20 #define _Py2yacsTest_hxx_
21
22 #include <cppunit/extensions/HelperMacros.h>
23
24 class Py2yacsTest: public CppUnit::TestFixture
25 {
26   CPPUNIT_TEST_SUITE(Py2yacsTest);
27   CPPUNIT_TEST(t1);
28   CPPUNIT_TEST(t2);
29   CPPUNIT_TEST(t3);
30   CPPUNIT_TEST(t4);
31   CPPUNIT_TEST(t5);
32   CPPUNIT_TEST(no_multiple_returns);
33   CPPUNIT_TEST(unaccepted_statement);
34   //CPPUNIT_TEST(unaccepted_statement2);
35   CPPUNIT_TEST(unaccepted_return);
36   CPPUNIT_TEST(unaccepted_return2);
37   CPPUNIT_TEST(syntaxError);
38   CPPUNIT_TEST(badFunctionName);
39   CPPUNIT_TEST(schemaExec);
40   CPPUNIT_TEST(parserErrors);
41   CPPUNIT_TEST(globalVerification);
42   CPPUNIT_TEST_SUITE_END();
43   
44   public:
45     void setUp();
46     void tearDown();
47     
48     void t1();
49     void t2();
50     void t3();
51     void t4();
52     void t5();
53     void no_multiple_returns();
54     void unaccepted_statement();
55     //void unaccepted_statement2();
56     void unaccepted_return();
57     void unaccepted_return2();
58     void syntaxError();
59     void badFunctionName();
60     void schemaExec();
61     void parserErrors();
62     void globalVerification();
63 };
64
65 #endif