Skip to content

Commit 145d757

Browse files
maxgallianigamova
authored andcommitted
add test for regex in out of parameter range error
1 parent debe4e3 commit 145d757

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
@@ -285,6 +285,14 @@ COMBINE_ADD_TEST(setParameters-out-of-range
285285
PASSREGEX "outside its range"
286286
)
287287

288+
# Test that setting a parameter outside its range via regex throws an error
289+
COMBINE_ADD_TEST(setParameters-out-of-range-regex
290+
COMMAND combine -M MultiDimFit simple-counting-experiment.txt --setParameters "rgx{r}=-1.05"
291+
COPY_TO_BUILDDIR ${REPO}/data/tutorials/counting/simple-counting-experiment.txt
292+
PASSRC 1
293+
PASSREGEX "outside its range"
294+
)
295+
288296
COMBINE_ADD_TEST(simple-shapes-TH1-text2workspace
289297
COMMAND text2workspace.py simple-shapes-TH1.txt
290298
COPY_TO_BUILDDIR ${REPO}/data/tutorials/shapes/simple-shapes-TH1.txt

0 commit comments

Comments
 (0)