Quiz extension can't take zero as an answer even if it it correct
Closed, ResolvedPublic

Description

Text input type questions doesn't evaluate zero as a valid answer even if it correct.
When zero is submitted, the quiz state remains unanswered.

Example:-

<quiz>
{What is 5 -5 ?
|type="{}"}
Ans: { 0  } .
</quiz>
  • Fix
  • Add tests

Change 357789 had a related patch set uploaded (by Harjotsingh; owner: Harjotsingh):
[mediawiki/extensions/Quiz@master] Enable numeric input type questions to evaluate zero as valid input.

https://gerrit.wikimedia.org/r/357789

Change 358532 had a related patch set uploaded (by Harjotsingh; owner: Harjotsingh):
[mediawiki/extensions/Quiz@master] Enable numeric input type questions to evaluate zero as valid input.

https://gerrit.wikimedia.org/r/358532

Change 358532 abandoned by Harjotsingh:
Enable numeric input type questions to evaluate zero as valid input.

Reason:
Wrong change

https://gerrit.wikimedia.org/r/358532

Change 357789 abandoned by Harjotsingh:
Enable numeric input type questions to evaluate zero as valid input.

Reason:
Needs Rebase

https://gerrit.wikimedia.org/r/357789

Change 358539 had a related patch set uploaded (by Harjotsingh; owner: Harjotsingh):
[mediawiki/extensions/Quiz@master] Enable numeric input type questions to evaluate zero as valid input.

https://gerrit.wikimedia.org/r/358539

Mvolz updated the task description. (Show Details)Jun 19 2017, 9:11 AM
Mvolz removed a project: Patch-For-Review.

Change 358539 merged by jenkins-bot:
[mediawiki/extensions/Quiz@master] Enable numeric input type questions to evaluate zero as valid input.

https://gerrit.wikimedia.org/r/358539

Harjotsingh closed this task as Resolved.Jun 19 2017, 1:25 PM
Harjotsingh reopened this task as Open.

Tests will covered in T159691.

Harjotsingh closed this task as Resolved.Jun 21 2017, 2:13 PM