diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2014-02-08 15:49:03 -0800 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2014-02-08 15:49:03 -0800 |
commit | 8f1a754e8e8f316f1b82f68901e1a404daf1915f (patch) | |
tree | 719eba97df39c0637f474e7bba911344c990e94d /tst/com/p4square/grow/model/SliderQuestionTest.java | |
parent | 21f317af89b1dde997874a60d3958970205b956d (diff) |
Changing the scoring process for slider questions.
Previously sliders were scored as a value between 1 and 4 based on the
percentage across the screen that the slider was slid. This required you
to slide fully to the right to get a 4.
Now the slider is divided into n sections, where n is the number of answers
on the slider. With 4 answers the score will be exactly 1, 2, 3, or 4.
With more answers you may get a decimals, but the last section of the
slider will always result in a 4.
Diffstat (limited to 'tst/com/p4square/grow/model/SliderQuestionTest.java')
-rw-r--r-- | tst/com/p4square/grow/model/SliderQuestionTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tst/com/p4square/grow/model/SliderQuestionTest.java b/tst/com/p4square/grow/model/SliderQuestionTest.java index eaa67b5..b5c4e83 100644 --- a/tst/com/p4square/grow/model/SliderQuestionTest.java +++ b/tst/com/p4square/grow/model/SliderQuestionTest.java @@ -26,6 +26,12 @@ public class SliderQuestionTest { @Before public void setUp() { mQuestion = new SliderQuestion(); + + // Add some "answers" for the scoring engine. + mQuestion.getAnswers().put("1", new Answer()); + mQuestion.getAnswers().put("2", new Answer()); + mQuestion.getAnswers().put("3", new Answer()); + mQuestion.getAnswers().put("4", new Answer()); } /** |