/[escript]/trunk/downunder/test/python/run_inversioncostfunction.py
ViewVC logotype

Diff of /trunk/downunder/test/python/run_inversioncostfunction.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  import esys.ripley  import esys.ripley
28  from esys.downunder import *  from esys.downunder import *
# Line 293  class TestInversionCostfunction(unittest Line 294  class TestInversionCostfunction(unittest
294          self.assertTrue( Lsup(gf2-gf[1]*STEP) < 1e-3 * Lsup(gf2) )          self.assertTrue( Lsup(gf2-gf[1]*STEP) < 1e-3 * Lsup(gf2) )
295    
296                    
297  if __name__ == "__main__":  if __name__ == '__main__':
298      suite = unittest.TestSuite()      run_tests(__name__, exit_on_failure=True)
     suite.addTest(unittest.makeSuite(TestInversionCostfunction))  
     s=unittest.TextTestRunner(verbosity=2).run(suite)  
     if not s.wasSuccessful(): sys.exit(1)  
299    

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

  ViewVC Help
Powered by ViewVC 1.1.26