# SingleFrac: Answer test results

This page exposes the results of running answer tests on STACK test cases.  This page is automatically generated from the STACK unit tests and is designed to show question authors what answer tests actually do.  This includes cases where answer tests currentl fail, which gives a negative expected mark.  Comments and further test cases are very welcome.



<h2>SingleFrac</h2><div class="no-overflow"><table class="flexible table table-striped table-hover generaltable generalbox stacktestsuite"><thead><tr><th class="header c0" scope="col">Test<div class="commands"></div></th><th class="header c1" scope="col">?<div class="commands"></div></th><th class="header c2" scope="col">Student response<div class="commands"></div></th><th class="header c3" scope="col">Teacher answer<div class="commands"></div></th><th class="header c4" scope="col">Opt<div class="commands"></div></th><th class="header c5" scope="col">Mark<div class="commands"></div></th><th class="header c6" scope="col">Answer note<div class="commands"></div></th>
</tr></thead><tbody>
<tr class="expectedfail">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:orange;"><i class="fa fa-adjust"></i></span></td>
  <td class="cell c2"><pre>1/0</pre></td>
  <td class="cell c3"><pre>1/n</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">-1</td>
  <td class="cell c6">ATSingleFrac_STACKERROR_SAns.</td>
</tr>
<tr class="expectedfail">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:orange;"><i class="fa fa-adjust"></i></span></td>
  <td class="cell c2"><pre>0</pre></td>
  <td class="cell c3"><pre>1/0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">-1</td>
  <td class="cell c6">ATSingleFrac_STACKERROR_TAns.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>x=3</pre></td>
  <td class="cell c3"><pre>2</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_SA_not_expression.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer should be an expression, not an equation, inequality, list, set or matrix.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>3</pre></td>
  <td class="cell c3"><pre>3</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>3</pre></td>
  <td class="cell c3"><pre>2</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_ret_exp.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer is not algebraically equivalent to the correct answer. You must have done something wrong.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1/m</pre></td>
  <td class="cell c3"><pre>1/n</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_true. ATSingleFrac_ret_exp.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4"> Your answer is not algebraically equivalent to the correct answer. You must have done something wrong.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1/n</pre></td>
  <td class="cell c3"><pre>1/n</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>a+1/2</pre></td>
  <td class="cell c3"><pre>(2*a+1)/2</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_part.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer needs to be a single fraction of the form <span class="filter_mathjaxloader_equation"><span class="nolink">\( {a}\over{b} \)</span></span>.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>a+1/2</pre></td>
  <td class="cell c3"><pre>(2*a+1)/2</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_part.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer needs to be a single fraction of the form <span class="filter_mathjaxloader_equation"><span class="nolink">\( {a}\over{b} \)</span></span>.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>4/(x^2+2*x-24)+2/(x^2+4*x-12)</pre></td>
  <td class="cell c3"><pre>(6*x-16)/(x^3-28*x+48)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_part.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer needs to be a single fraction of the form <span class="filter_mathjaxloader_equation"><span class="nolink">\( {a}\over{b} \)</span></span>.</td></td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">2 subtly different answers for the same question</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>2*(1/n)</pre></td>
  <td class="cell c3"><pre>2/n</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_part.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer needs to be a single fraction of the form <span class="filter_mathjaxloader_equation"><span class="nolink">\( {a}\over{b} \)</span></span>.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>2/n</pre></td>
  <td class="cell c3"><pre>2/n</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Simple Mistakes</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>2/(n+1)</pre></td>
  <td class="cell c3"><pre>1/(n+1)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_true. ATSingleFrac_ret_exp.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4"> Your answer is not algebraically equivalent to the correct answer. You must have done something wrong.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(2*n+1)/(n+2)</pre></td>
  <td class="cell c3"><pre>1/n</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_true. ATSingleFrac_ret_exp.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4"> Your answer is not algebraically equivalent to the correct answer. You must have done something wrong.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(2*n)/(n*(n+2))</pre></td>
  <td class="cell c3"><pre>(2*n)/(n*(n+3))</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_true. ATSingleFrac_ret_exp.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4"> Your answer is not algebraically equivalent to the correct answer. You must have done something wrong.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(x-1)/(x^2-1)</pre></td>
  <td class="cell c3"><pre>1/(x+1)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Fractions within fractions</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(1/2)/(3/4)</pre></td>
  <td class="cell c3"><pre>2/3</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_div.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer contains fractions within fractions. You need to clear these and write your answer as a single fraction.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(x-2)/4/(2/x^2)</pre></td>
  <td class="cell c3"><pre>(x-2)*x^2/8</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_div.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer contains fractions within fractions. You need to clear these and write your answer as a single fraction.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1/(1-1/x)</pre></td>
  <td class="cell c3"><pre>x/(x-1)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_div.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer contains fractions within fractions. You need to clear these and write your answer as a single fraction.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(1+1/a)/a</pre></td>
  <td class="cell c3"><pre>(1+a)/a^2</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_div.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer contains fractions within fractions. You need to clear these and write your answer as a single fraction.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>a/(1+1/a)</pre></td>
  <td class="cell c3"><pre>a^2/(1+a)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_div.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer contains fractions within fractions. You need to clear these and write your answer as a single fraction.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(1+2*b/a)/c</pre></td>
  <td class="cell c3"><pre>(a+2*b)/(a*c)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_div.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer contains fractions within fractions. You need to clear these and write your answer as a single fraction.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>c/(1+2*b/a)</pre></td>
  <td class="cell c3"><pre>a*c/(a+2*b)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_div.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer contains fractions within fractions. You need to clear these and write your answer as a single fraction.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>a*c/(a+2*b)</pre></td>
  <td class="cell c3"><pre>a*c/(a+2*b)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Negative cases</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>-1/2</pre></td>
  <td class="cell c3"><pre>-1/2</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>-1/2</pre></td>
  <td class="cell c3"><pre>-1/3</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_true. ATSingleFrac_ret_exp.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4"> Your answer is not algebraically equivalent to the correct answer. You must have done something wrong.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>-(1/2)</pre></td>
  <td class="cell c3"><pre>-1/2</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>-a/b</pre></td>
  <td class="cell c3"><pre>-a/b</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(-a)/b</pre></td>
  <td class="cell c3"><pre>-a/b</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>a/(-b)</pre></td>
  <td class="cell c3"><pre>-a/b</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>-(a/b)</pre></td>
  <td class="cell c3"><pre>-a/b</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>-(1/(n-1))</pre></td>
  <td class="cell c3"><pre>1/(1-n)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>a/(-1-1/a)</pre></td>
  <td class="cell c3"><pre>-a^2/(1+a)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATSingleFrac_div.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">Your answer contains fractions within fractions. You need to clear these and write your answer as a single fraction.</td></td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Surds in answers</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>((sqrt(5))^3 +6)/15</pre></td>
  <td class="cell c3"><pre>((sqrt(5))^3 +6)/15</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1/(1-sqrt(2))</pre></td>
  <td class="cell c3"><pre>1/(1-sqrt(2))</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>((sqrt(5))^3+6)/15</pre></td>
  <td class="cell c3"><pre>((sqrt(5))^3+6)/15</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr>
<tr class="pass">
  <td class="cell c0">SingleFrac</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(5^(3/2)+6)/15</pre></td>
  <td class="cell c3"><pre>((sqrt(5))^3+6)/15</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6">ATSingleFrac_true.</td>
</tr></tbody></table></div>