cloudcoderdotorg / CloudCoder

A web-based programming exercise system.
GNU Affero General Public License v3.0
71 stars 59 forks source link

Python function ending with 'return """' produces "All tests passed!" #95

Open x77686d opened 7 years ago

x77686d commented 7 years ago

It appears that a Python solution ending with 'return """' (triple double-quote) produces "All tests passed!" even though it's a syntax error. Sample code:

def grid_is_square(x):
        return """

Here's what the student sees: image

The progress summary shows the following. Note the gray bar (not started(?)) and green bar (passed) for grid_is_square. image