~ubuntu-branches/ubuntu/trusty/ffc/trusty

« back to all changes in this revision

Viewing changes to test/unit/evaluate_basis/test.py

  • Committer: Bazaar Package Importer
  • Author(s): Johannes Ring
  • Date: 2010-02-03 20:22:35 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100203202235-fe8d0kajuvgy2sqn
Tags: 0.9.0-1
* New upstream release.
* debian/control: Bump Standards-Version (no changes needed).
* Update debian/copyright and debian/copyright_hints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""Unit tests for FFC. This test compares values computed by the two UFC
 
2
functions evaluate_basisi and evaluate_basis_derivatives generated by FFC to the
 
3
values tabulated by FIAT and to reference values computed by an older version of FFC."""
 
4
 
 
5
__author__ = "Kristian B. Oelgaard (k.b.oelgaard@gmail.com)"
 
6
__date__ = "2010-02-01"
 
7
__copyright__ = "Copyright (C) 2010 Kristian B. Oelgaard"
 
8
__license__  = "GNU GPL version 3 or any later version"
 
9
 
 
10
import unittest
 
11
from test_against_fiat import main as fiat_main
 
12
from ffc.log import CRITICAL, INFO
 
13
 
 
14
class EvaluateBasisTests(unittest.TestCase):
 
15
 
 
16
    def testAgainsFiat(self):
 
17
        "Test evaluate basis agains FIAT.FiniteElement.tabulate()."
 
18
 
 
19
        error = fiat_main(INFO)
 
20
        self.assertEqual(error, 0, "Errors while testing evaluate_basis against FIAT, see fiat_errors.log for details")
 
21
 
 
22
if __name__ == "__main__":
 
23
    unittest.main()