SCCapstone / Swearengineers

Math Quizzes
https://math-quizzes-sc.appspot.com
Apache License 2.0
0 stars 0 forks source link

Internal server error when answering quiz #81

Closed brandonhostetter closed 7 years ago

brandonhostetter commented 7 years ago

Here's the quiz. Answer 2 is incorrect. If you answer it correctly, the following error doesn't occur.

screen shot 2017-04-13 at 9 20 27 pm screen shot 2017-04-13 at 9 20 35 pm
jeSager commented 7 years ago

Can you show / tell me all the solutions to that quiz so I can try to recreate the issue?

I cannot tell if that is linked to #67 or not. For each problem, both the solution and the answer are run through sympy.

Thank you.

brandonhostetter commented 7 years ago

Answer 1 should be 3. Answer 2 should be e^x. I can guess question 1 incorrectly and everything is fine. But an incorrect answer for question 2 leads to this error

jeSager commented 7 years ago

Got it.

So for number 2: 3^x, 3^y, x^1, or x^3 will be incorrect .. and 3 or 3^3 will throw an error.

Thank you!

@napolija I think the bigger issue is that when we resolve this, the student will be able to enter the problem as the answer and it will be marked correct.

jeSager commented 7 years ago

@napolija that's an issue too screenshot from 2017-04-13 22-30-29

jeSager commented 7 years ago

FIX: No longer crashes

Python Try / Catch now marks incomparable strings wrong for the teacher to edit later.

Code

trycatch



Example 1:

powers



Example 2 (same quiz):

powers2