/[escript]/trunk/finley/test/python/run_visualization_interface.py
ViewVC logotype

Diff of /trunk/finley/test/python/run_visualization_interface.py

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

revision 4575 by jfenwick, Tue Jan 22 09:30:23 2013 UTC revision 4576 by sshaw, Mon Dec 9 23:35:30 2013 UTC
# Line 46  class Test_VisualizationInterface(unitte Line 46  class Test_VisualizationInterface(unitte
46        c=0        c=0
47        for l in range(0,len(ref_string)):        for l in range(0,len(ref_string)):
48           if not ref_string[l].strip()[0]=="#":           if not ref_string[l].strip()[0]=="#":
49         line=out_string[c].strip()             line=out_string[c].strip()
50         if os.name == "nt":             if os.name == "nt":
51             line=line.replace("e+00","e+0").replace("e-00","e-0")                 line=line.replace("e+00","e+0").replace("e-00","e-0")
52         line=line.replace("e-00","e+00").replace("-0.000000e+00","0.000000e+00")             line=line.replace("e-00","e+00").replace("-0.000000e+00","0.000000e+00")
53             self.assertEqual(line,ref_string[l].strip(),"line %d (%s) in dx file does not match reference (%s)"%(c,line,ref_string[l].strip()))             self.assertEqual(line,ref_string[l].strip(),"line %d (%s) in dx file does not match reference (%s)"%(c,line,ref_string[l].strip()))
54             c+=1             c+=1
55    

Legend:
Removed from v.4575  
changed lines
  Added in v.4576

  ViewVC Help
Powered by ViewVC 1.1.26