Skip to content

Commit debe4e3

Browse files
maxgallianigamova
authored andcommitted
add test for out of range parameter error
1 parent 2619aed commit debe4e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,14 @@ COMBINE_ADD_TEST(simple-counting-experiment-text2workspace
277277
# No output, so nothing to compare. We just check that it runs.
278278
)
279279

280+
# Test that setting a parameter outside its range throws an error
281+
COMBINE_ADD_TEST(setParameters-out-of-range
282+
COMMAND combine -M MultiDimFit simple-counting-experiment.txt --setParameters r=-1.05
283+
COPY_TO_BUILDDIR ${REPO}/data/tutorials/counting/simple-counting-experiment.txt
284+
PASSRC 1
285+
PASSREGEX "outside its range"
286+
)
287+
280288
COMBINE_ADD_TEST(simple-shapes-TH1-text2workspace
281289
COMMAND text2workspace.py simple-shapes-TH1.txt
282290
COPY_TO_BUILDDIR ${REPO}/data/tutorials/shapes/simple-shapes-TH1.txt

0 commit comments

Comments
 (0)