Skip to content

Commit 8f83fbb

Browse files
committed
Add extra check for std::nullopt in parse scale factor test
1 parent 51d20fc commit 8f83fbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qt/scientific_interfaces/ISISReflectometry/test/Reduction/ValidateRowTest.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ class ValidateRowTest : public CxxTest::TestSuite {
172172
void testParseScaleFactor() {
173173
TS_ASSERT(!parseScaleFactor("ABSC").second);
174174
TS_ASSERT(parseScaleFactor("").second);
175+
TS_ASSERT_EQUALS(std::nullopt, parseScaleFactor("").first);
175176
TS_ASSERT_EQUALS(0.1, parseScaleFactor("0.1").first.value());
176177
}
177178

0 commit comments

Comments
 (0)