Skip to content

Commit

Permalink
re #8753: Add unit test for back syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
gesnerpassos committed Jan 27, 2014
1 parent 3546a3c commit 382af86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Code/Mantid/scripts/test/SansIsisGuiSettings.py
Expand Up @@ -235,6 +235,13 @@ def testScalingValues(scale, shift, qMin=None, qMax=None, fitScale=False, fitShi
i.SetFrontDetRescaleShift(**option)
testScalingValues(**option)

def test_BACK(self):
tofs = i.ReductionSingleton().instrument.get_TOFs(2)
self.checkFloat(tofs[0], 85000)
self.checkFloat(tofs[1], 98000)
tofs = i.ReductionSingleton().instrument.get_TOFs(1)
self.checkFloat(tofs[0], 35000)
self.checkFloat(tofs[1], 65000)


if __name__ == '__main__':
Expand Down
1 change: 1 addition & 0 deletions Test/AutoTestData/MaskSANS2D.txt
Expand Up @@ -9,6 +9,7 @@ L/Q 0.005,0.001,0.008,-0.08,1.0
L/QXY 0 0.15 .002/lin
! note increase lower time limit here
!BACK/MON/TIMES 85000 98000
BACK/M1 35000 65000
BACK/M2 85000 98000
!check BACK/M4
DET/REAR
Expand Down

0 comments on commit 382af86

Please sign in to comment.