edsl
edsl copied to clipboard
QuestionCheckBox and QuestionList validation
I can initialize QuestionCheckBox with negative values for min_selections
and max_selections
- I don't think this should be the case?
>>> from edsl import QuestionCheckBox
>>> q = QuestionCheckBox(question_name="test", question_text="Please select your favorite option", question_options=["Option 1", "Option 2", "Option 3"], min_selections=-1, max_selections=-10)
>>> q
Question('checkbox', question_name = """test""", question_text = """Please select your favorite option""", min_selections = -1, max_selections = -10, question_options = ['Option 1', 'Option 2', 'Option 3'])