Author: varioustoxins Date: Tue Nov 28 10:02:08 2006 New Revision: 2890 URL: http://svn.gna.org/viewcvs/relax?rev=2890&view=rev Log: initial commit of maths fns unit tests and test for the unit test framework note: all tests are just dummy null tests (including failures) Added: branches/test_suite/test_suite/unit_tests/maths_fns/ branches/test_suite/test_suite/unit_tests/maths_fns/__init__.py branches/test_suite/test_suite/unit_tests/maths_fns/test_chi2.py (with props) branches/test_suite/test_suite/unit_tests/unit_test_tests/ branches/test_suite/test_suite/unit_tests/unit_test_tests/__init__.py branches/test_suite/test_suite/unit_tests/unit_test_tests/test_dummy.py (with props) Added: branches/test_suite/test_suite/unit_tests/maths_fns/__init__.py URL: http://svn.gna.org/viewcvs/relax/branches/test_suite/test_suite/unit_tests/maths_fns/__init__.py?rev=2890&view=auto ============================================================================== --- branches/test_suite/test_suite/unit_tests/maths_fns/__init__.py (added) +++ branches/test_suite/test_suite/unit_tests/maths_fns/__init__.py Tue Nov 28 10:02:08 2006 @@ -1,0 +1,25 @@ +############################################################################### +# # +# Copyright (C) 2006 Edward d'Auvergne # +# # +# This file is part of the program relax. # +# # +# relax is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# relax is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with relax; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +############################################################################### + + +#`__all__ = [] + Added: branches/test_suite/test_suite/unit_tests/maths_fns/test_chi2.py URL: http://svn.gna.org/viewcvs/relax/branches/test_suite/test_suite/unit_tests/maths_fns/test_chi2.py?rev=2890&view=auto ============================================================================== --- branches/test_suite/test_suite/unit_tests/maths_fns/test_chi2.py (added) +++ branches/test_suite/test_suite/unit_tests/maths_fns/test_chi2.py Tue Nov 28 10:02:08 2006 @@ -1,0 +1,18 @@ +#!/usr/bin/env python + +import unittest + +class Test_chi2(unittest.TestCase): + # failure for testing + def test_chi2(self): + '''Test that chi2 give correct values''' + + print 'stub test chi2' + + def test_dchi2_(self): + '''Test that chi2 give correct values''' + + print 'stub test dchi2' + +if __name__ == '__main__': + unittest.main() Propchange: branches/test_suite/test_suite/unit_tests/maths_fns/test_chi2.py ------------------------------------------------------------------------------ svn:executable = * Added: branches/test_suite/test_suite/unit_tests/unit_test_tests/__init__.py URL: http://svn.gna.org/viewcvs/relax/branches/test_suite/test_suite/unit_tests/unit_test_tests/__init__.py?rev=2890&view=auto ============================================================================== --- branches/test_suite/test_suite/unit_tests/unit_test_tests/__init__.py (added) +++ branches/test_suite/test_suite/unit_tests/unit_test_tests/__init__.py Tue Nov 28 10:02:08 2006 @@ -1,0 +1,25 @@ +############################################################################### +# # +# Copyright (C) 2006 Edward d'Auvergne # +# # +# This file is part of the program relax. # +# # +# relax is free software; you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation; either version 2 of the License, or # +# (at your option) any later version. # +# # +# relax is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with relax; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +############################################################################### + + +#`__all__ = [] + Added: branches/test_suite/test_suite/unit_tests/unit_test_tests/test_dummy.py URL: http://svn.gna.org/viewcvs/relax/branches/test_suite/test_suite/unit_tests/unit_test_tests/test_dummy.py?rev=2890&view=auto ============================================================================== --- branches/test_suite/test_suite/unit_tests/unit_test_tests/test_dummy.py (added) +++ branches/test_suite/test_suite/unit_tests/unit_test_tests/test_dummy.py Tue Nov 28 10:02:08 2006 @@ -1,0 +1,14 @@ +#!/usr/bin/env python + +import unittest + +class Test_dummy(unittest.TestCase): + # failure for testing + def test_dummy(self): + assert(False) + + def test_dummy2(self): + assert(True) + +if __name__ == '__main__': + unittest.main() Propchange: branches/test_suite/test_suite/unit_tests/unit_test_tests/test_dummy.py ------------------------------------------------------------------------------ svn:executable = *