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."""
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"
11
from test_against_fiat import main as fiat_main
12
from ffc.log import CRITICAL, INFO
14
class EvaluateBasisTests(unittest.TestCase):
16
def testAgainsFiat(self):
17
"Test evaluate basis agains FIAT.FiniteElement.tabulate()."
19
error = fiat_main(INFO)
20
self.assertEqual(error, 0, "Errors while testing evaluate_basis against FIAT, see fiat_errors.log for details")
22
if __name__ == "__main__":