Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Apparently I didn't run the tests in 4c6eb68...

Test Plan:
Really run the tests.

Auditors: eater
  • Loading branch information...
commit 683d34650dc7790a3c2f4195221ac7c54336035f 1 parent f2e1f8c
@spicyj spicyj authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 utils/test/answer-types.html
View
12 utils/test/answer-types.html
@@ -365,7 +365,7 @@ <h2 id="qunit-userAgent"></h2>
start();
});
- asyncTest("number decimal", 8, function() {
+ asyncTest("number decimal", 9, function() {
var $problem = jQuery("#qunit-fixture .problem").append(
"<p class='solution' data-type='number' data-forms='decimal'>12345.6789<\/p>"
);
@@ -434,18 +434,18 @@ <h2 id="qunit-userAgent"></h2>
start();
});
- asyncTest("number generic 41.976", 4, function() {
+ asyncTest("number generic 41976", 4, function() {
var $problem = jQuery("#qunit-fixture .problem").append(
- "<p class='solution'>41.976<\/p>"
+ "<p class='solution'>41976<\/p>"
);
var answerData = Khan.answerTypes.number.setup($("#solutionarea"),
$problem.children(".solution"));
testAnswer(answerData, "419.76", false, "wrong answer is wrong");
- testAnswer(answerData, "41976", false, "right answer is right");
- testAnswer(answerData, "41,976", false, "right answer with comma is right");
- testAnswer(answerData, "41.976", false, "right answer with period is right");
+ testAnswer(answerData, "41976", true, "right answer is right");
+ testAnswer(answerData, "41,976", true, "right answer with comma is right");
+ testAnswer(answerData, "41.976", true, "right answer with period is right");
start();
});
Please sign in to comment.
Something went wrong with that request. Please try again.