Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Combining like terms with distribution - Final hint answer was said to be wrong #29882

Closed
KhanBugz opened this Issue · 0 comments

2 participants

@KhanBugz
Collaborator

In the 'combining like terms with distribution' exercise the question was '-2+2(-4p+1)'. I typed the final hint answer which was '-8p+0' It worked when I typed '0-8p'.

combining_like_terms_2.html?seed=112&problem=c_fd_fbx

Answer timeline

[["8p"],["8p+0"],["-8p"],["-8p+0"],["-8p+0"],["-8p +0"],["-8p + 0"],["-8p+0"],["-8p+o"],["-8p+O"],["-8P+0"],["0-8p"]]

Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.0.1

MathJax is loaded, ready, queue length: 0

User hash: 2045785376

@beneater beneater closed this issue from a commit
@beneater beneater Handle case in combining_like_terms_2 where constant terms simplify to 0
Summary:
fix #26874; fix #29882; fix #29943; fix #29949; fix #29964; fix #29969;
fix #30088; fix #30091; fix #30108; fix #30118; fix #30138; fix #30177;
fix #30205; fix #30257; fix #30258; fix #30276; fix #30279; fix #30280

Previously, the last hint would show something like "-24a + 0" and the regex
answer would expect you to type "-24a0". This fixes the final hint to show just
"-24a" and the answer regex expects "-24a"

Test Plan:
Tested these problematic seeds outside devappserver (before and after the fix):
http://localhost:8000/exercises/combining_like_terms_2.html?debug&seed=112&problem=c_fd_fbx
http://localhost:8000/exercises/combining_like_terms_2.html?debug&seed=177&problem=c_fd_fbx
http://localhost:8000/exercises/combining_like_terms_2.html?debug&seed=161&problem=c_fd_fbx

Reviewers: stephanie

Reviewed By: stephanie

Differential Revision: http://phabricator.khanacademy.org/D742
8183d56
@beneater beneater closed this in 8183d56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.