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

Diff of /trunk/downunder/test/python/run_mappings.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  from esys.downunder.mappings import *  from esys.downunder.mappings import *
# Line 153  class TestBoundedRangeMapping(unittest.T Line 154  class TestBoundedRangeMapping(unittest.T
154          ref=0.          ref=0.
155          self.assertAlmostEqual(v, ref)          self.assertAlmostEqual(v, ref)
156    
157  if __name__ == "__main__":  if __name__ == '__main__':
158      suite = unittest.TestSuite()      run_tests(__name__, exit_on_failure=True)
     suite.addTest(unittest.makeSuite(TestLinearMapping))  
     suite.addTest(unittest.makeSuite(TestBoundedRangeMapping))  
     suite.addTest(unittest.makeSuite(TestAcousticVelocityMapping))  
     s=unittest.TextTestRunner(verbosity=2).run(suite)  
     if not s.wasSuccessful(): sys.exit(1)  
159    

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

  ViewVC Help
Powered by ViewVC 1.1.26