Skip to content

Fix test function highlight *decision needed*#167

Merged
filipsch merged 4 commits intomasterfrom
fix-test-funciton-highlight
Dec 2, 2016
Merged

Fix test function highlight *decision needed*#167
filipsch merged 4 commits intomasterfrom
fix-test-funciton-highlight

Conversation

@machow
Copy link
Copy Markdown
Contributor

@machow machow commented Dec 2, 2016

Disables highlighting by default for test function, but allows it to be re-enabled by setting highlight = True in test_function[_v2]. If that doesn't sit well with you, we can always set the default to True and weigh the problem more carefully.

The problem with highlighting when there is only 1 match, is that when there are 2 functions students should write, and they omit 1, it may highlight the wrong function. I'm not totally sold on either approach though.

@machow machow changed the title Fix test funciton highlight *decision needed* Fix test function highlight *decision needed* Dec 2, 2016
Copy link
Copy Markdown
Contributor

@filipsch filipsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's accept this as a temporary fix for the highlighting (so that it doesn't incorrectly highlight anymore), but I think just doing away with highlighting for test_function altogether would be a step backwards. test_function is used so incredibly often, and it would be a waste if we don't exploits Python's ast!

@filipsch filipsch merged commit 99aa164 into master Dec 2, 2016
@filipsch filipsch deleted the fix-test-funciton-highlight branch December 2, 2016 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants