/[escript]/trunk/escriptcore/test/python/run_testdomain.py
ViewVC logotype

Diff of /trunk/escriptcore/test/python/run_testdomain.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4983 by jfenwick, Wed May 14 01:13:23 2014 UTC revision 4984 by sshaw, Mon Jun 2 02:50:34 2014 UTC
# Line 22  http://www.opensource.org/licenses/osl-3 Line 22  http://www.opensource.org/licenses/osl-3
22  __url__="https://launchpad.net/escript-finley"  __url__="https://launchpad.net/escript-finley"
23    
24  import esys.escriptcore.utestselect as unittest  import esys.escriptcore.utestselect as unittest
25    from esys.escriptcore.testing import *
26  import sys  import sys
27  from esys.escript import *  from esys.escript import *
28    
# Line 37  class TestDomainTests(unittest.TestCase) Line 38  class TestDomainTests(unittest.TestCase)
38          ref=msk_ref*(-0.5)+(1.-msk_ref)*0.9          ref=msk_ref*(-0.5)+(1.-msk_ref)*0.9
39          self.assertTrue(Lsup(res-ref) <= self.TOL, "ReductionOnTestDomain Failed")          self.assertTrue(Lsup(res-ref) <= self.TOL, "ReductionOnTestDomain Failed")
40    
41  if __name__ == "__main__":  if __name__ == '__main__':
42      suite = unittest.TestSuite()      run_tests(__name__, exit_on_failure=True)
     suite.addTest(unittest.makeSuite(TestDomainTests))  
     s=unittest.TextTestRunner(verbosity=2).run(suite)  
     if not s.wasSuccessful(): sys.exit(1)  

Legend:
Removed from v.4983  
changed lines
  Added in v.4984

  ViewVC Help
Powered by ViewVC 1.1.26