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

« back to all changes in this revision

Viewing changes to test/unit/symbolics/testmixedsymbols.py

  • Committer: Bazaar Package Importer
  • Author(s): Johannes Ring
  • Date: 2010-07-01 19:54:32 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100701195432-xz3gw5nprdj79jcb
Tags: 0.9.3-1
* New upstream release.
* debian/control:
  - Minor fix in Vcs fields.
  - Bump Standards-Version to 3.9.0 (no changes needed).
  - Update version for python-ufc, python-fiat, and python-ufl in
    Depends field.
* Switch to dpkg-source 3.0 (quilt) format.
* Update debian/copyright and debian/copyright_hints.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
__copyright__ = "Copyright (C) 2010 Kristian B. Oelgaard"
6
6
__license__  = "GNU GPL version 3 or any later version"
7
7
 
8
 
# Last changed: 2010-02-01
 
8
# Last changed: 2010-03-11
9
9
 
10
10
# Pyhton modules
11
11
import unittest
278
278
        self.assertEqual(str(mff3), '(x/y)/((x/y)/(x/%s))' % f_3)
279
279
 
280
280
        # Use p1 as a base expression for Symbol
281
 
        s3 = Symbol(format["cos"](p1), CONST, p1, 1)
 
281
        s3 = Symbol(format["cos"], CONST, p1, 1)
282
282
        self.assertEqual(str(s3), 'std::cos(%s*x*y)' % f_3)
283
283
        self.assertEqual(s3.ops(), 3)
284
284