Permalink
Browse files

Prevent coefficient of g being -1

When the coefficient is -1 there is some weird formatting.

fix #43391

Test plan: minimal

Auditors: alpert, beneater
  • Loading branch information...
1 parent afd017a commit b99392db11c5d5932da950776ce203e83d0ed81f @petercollingridge petercollingridge committed Mar 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 exercises/functions_2.html
@@ -43,7 +43,7 @@
<var id="F_PATH">generateFunctionPath(END_F)</var>
<var id="G_PATH">generateFunctionPath(END_G)</var>
<var id="F_COEF">randRangeExclude(-10, 10, [-1, 0])</var>
- <var id="G_COEF">randRangeNonZero(-10, 10)</var>
+ <var id="G_COEF">randRangeExclude(-10, 10, [-1, 0])</var>
<var id="CORRECT_X">randRange(-9, 9)</var>
<var id="CORRECT_Y">F_PATH[CORRECT_X + 10][1]</var>
<var id="CORRECT_GX">randRange(-9, 9)</var>

2 comments on commit b99392d

Also fixes #43421, #43393

Contributor

Christi replied Mar 17, 2013

Also fixes #43371, #43412, #43407, #43376

Please sign in to comment.