From 8f1a754e8e8f316f1b82f68901e1a404daf1915f Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 8 Feb 2014 15:49:03 -0800 Subject: 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. --- tst/com/p4square/grow/model/SliderQuestionTest.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tst/com/p4square/grow/model/SliderQuestionTest.java') 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()); } /** -- cgit v1.2.3