Survey now shows warnings if bad goto, bad gotoExpressions, no question text, survey looping,

or no question answers are found.
This commit is contained in:
Kaleb Murphy 2009-03-31 04:08:44 +00:00
parent 83b2657197
commit e73a7645a7
4 changed files with 117 additions and 8 deletions

View file

@ -468,6 +468,7 @@ $rJSON->recordResponses({
'1-0-0' => 'First answer',
'1-0-0comment' => 'Section 1, question 0, answer 0 comment',
});
cmp_deeply(
$rJSON->responses,
{
@ -485,6 +486,7 @@ cmp_deeply(
},
'recordResponses: recorded responses correctly, two questions, one answer, comments, values and time'
);
$rJSON->survey->question([1,0])->{questionType} = 'Multiple Choice'; # revert change
$rJSON->survey->question([1,0,0])->{terminal} = 1;