diff options
author | Martin <martin@leo.fri1.uni-lj.si> | 2015-09-23 10:19:19 +0200 |
---|---|---|
committer | Martin <martin@leo.fri1.uni-lj.si> | 2015-09-23 10:19:19 +0200 |
commit | e0a5dd801c8382848b28503a81c141d0d15f5833 (patch) | |
tree | b36b5144df5e0fe196dbcf7521b64210ee0ff4bb /python/problems/functions/greatest_negative | |
parent | ba4bee9a9a508eb1a686808241559b331f2d33ea (diff) |
Minor changes to greatest problems. Mostly text corrections.
Diffstat (limited to 'python/problems/functions/greatest_negative')
-rw-r--r-- | python/problems/functions/greatest_negative/common.py | 2 | ||||
-rw-r--r-- | python/problems/functions/greatest_negative/sl.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/python/problems/functions/greatest_negative/common.py b/python/problems/functions/greatest_negative/common.py index 01dfce3..2425bbc 100644 --- a/python/problems/functions/greatest_negative/common.py +++ b/python/problems/functions/greatest_negative/common.py @@ -30,6 +30,7 @@ hint_type = { 'return_greatest': Hint('return_greatest'), 'return_positive': Hint('return_positive'), 'return_absolute': Hint('return_absolute'), + 'return_indent': Hint('return_indent') } @@ -61,7 +62,6 @@ def test(python, code): hints = [{'id': 'test_results', 'args': {'passed': n_correct, 'total': len(test_in)}}] if tin: hints.append({'id': 'problematic_test_case', 'args': {'testin': str(tin), 'testout': str(tout)}}) - return n_correct == len(test_in), hints def hint(python, code): diff --git a/python/problems/functions/greatest_negative/sl.py b/python/problems/functions/greatest_negative/sl.py index c0b7515..ea1e47c 100644 --- a/python/problems/functions/greatest_negative/sl.py +++ b/python/problems/functions/greatest_negative/sl.py @@ -93,5 +93,6 @@ hint = { 'return_indent': '''\ <p>Ali imaš stavek <code>return</code> znotraj zanke? V tem primeru se lahko zgodi, da se zanka ne izteče do konca.</p>''' + } |