Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List unlocking answer is not being evaluated #108

Closed
albert12132 opened this issue Jul 10, 2015 · 2 comments
Closed

List unlocking answer is not being evaluated #108

albert12132 opened this issue Jul 10, 2015 · 2 comments
Assignees
Labels

Comments

@albert12132
Copy link
Contributor

From @ksteph

List Slicing > Suite 1 > Case 1
>>> x = [1, 2, 3, 4]
...
>>> x[::-1]
? [4, 3, 2,1]
-- Not quite. Try again! --

? [4, 3, 2, 1]
-- Not quite. Try again! --

? [4,3,2,1]
-- OK! --

This should have been handled by #101; will investigate further.

@albert12132 albert12132 self-assigned this Jul 10, 2015
@jathak
Copy link
Contributor

jathak commented Jul 15, 2015

If the user input doesn't match the expected answer exactly, then repr(eval(input)) is compared to the expected answer. However, in order for this to work, the expected answer has to be in its canonical form. I think the bug above is due to the expected answer being [4,3,2,1] when it should be [4, 3, 2, 1].

@albert12132
Copy link
Contributor Author

Just checked the sample test, and it seems your right. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants