Permalink
Browse files

Fix to rate_problems_1 to ensure the givens make sense

Summary:
Previously one of the distances could be zero, so the given average
speed didn't make sense. (How can you have an average speed over zero distance?)
This just ensures neither distance is zero.

Test Plan: Tested locally outside devappserver

Reviewers: stephanie, yunfangjuan

Reviewed By: stephanie

Differential Revision: http://phabricator.khanacademy.org/D848
  • Loading branch information...
1 parent 50f2d07 commit 6a4c04cf85d6b5203731b57c1614644bb91e01a1 @beneater beneater committed Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 exercises/rate_problems_1.html
@@ -7,7 +7,7 @@
</head>
<body>
<div class="exercise">
- <div class="vars">
+ <div class="vars" data-ensure="DIST1 !== 0 && DIST2 !==0">
<var id="VEHC1">vehicle(1)</var>
<var id="VEHC2">vehicle(2)</var>

0 comments on commit 6a4c04c

Please sign in to comment.