New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PeakIntensityVsRadius throws an error if parameter is < 0 #8394
Comments
@NickDraper (2014-02-14T11:05:00): |
mantid-builder
added
the
Framework
Issues and pull requests related to components in the Framework
label
Jun 3, 2015
|
gemmaguest
added a commit
that referenced
this issue
Jul 17, 2017
Added commented out BoundedValidator creation to NumSteps property of PeakIntensityVsRadius.
gemmaguest
added a commit
that referenced
this issue
Jul 17, 2017
Added new methods, doTestThrowsForInvalid and doTestNoThrowForValid to make unit tests clearer. Added extra test which ensures that validateInput throws when passed a negative value for the NumSteps property.
Note that the commits here are Edward's work, he was just using my machine! |
edwardb96
pushed a commit
that referenced
this issue
Jul 20, 2017
Many assertions were repeated in two of the PeakIntensityVsRadiusTests. They have been extracted into macros which broadly describe what they do.
edwardb96
pushed a commit
that referenced
this issue
Jul 20, 2017
- Removed duplicated ASSERT_THROWS_NOTHINGs for algorithm property setters. - Removed duplicated ASSERT_THROWS_NOTHING and ASSERT for initialization of the algorithm object.
edwardb96
pushed a commit
that referenced
this issue
Jul 20, 2017
- Continued to refactor and eliminate duplication from PeakIntensityVsRadius unit tests. - Converted added assertion macros to proper functions. - Added failing unit test to prove lack of validator.
edwardb96
pushed a commit
that referenced
this issue
Jul 20, 2017
- Assertions are moved closer to the test methods they are used in.
7 tasks
edwardb96
pushed a commit
that referenced
this issue
Jul 20, 2017
- Applied clang format manually to PeakIntensityVsRadius. - Uncommented fix for issue.
edwardb96
pushed a commit
that referenced
this issue
Jul 20, 2017
edwardb96
pushed a commit
that referenced
this issue
Jul 24, 2017
- Removed the unused NumSteps parameter from the PeakIntensityVsRadius test helpers. - Removed the unused m_alg member variable from the PeakIntensityVsRadius suite class.
edwardb96
pushed a commit
that referenced
this issue
Jul 24, 2017
- The DEFAULT_NUM_STEPS constant had both auto and int type specifiers this commit removes the int.
DanielMurphy22
added
Induction
Straightforward, low risk issues suitable for new starters
and removed
Induction 1
labels
Nov 16, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was originally TRAC 7549
Original Reporter: Samuel Jackson
This should be an easy fix. The NumSteps parameter in PeakIntensityVsRadius throws the following error when the NumSteps is less than 0:
My guess would be that adding a bounded validator would fix this no problem.
The text was updated successfully, but these errors were encountered: