diff --git a/tests/test_environment_terminal.py b/tests/test_environment_terminal.py index 14bd523..80cbd26 100644 --- a/tests/test_environment_terminal.py +++ b/tests/test_environment_terminal.py @@ -30,10 +30,10 @@ def test_correct(self): terminal.resolve() clear_report() self.checkFeedback(f.getvalue(), ''' -YOUR CODE We ran your code. Here's the output: + YOUR CODE  We ran your code. Here's the output: -FEEDBACK Based on your code, here are some tips and recommendations: + FEEDBACK  Based on your code, here are some tips and recommendations: ✓️ Your code ran successfully. @@ -46,10 +46,10 @@ def test_empty_source(self): terminal.resolve() clear_report() self.checkFeedback(f.getvalue(), ''' -YOUR CODE We ran your code. Here's the output: + YOUR CODE  We ran your code. Here's the output: -FEEDBACK Based on your code, here are some tips and recommendations: + FEEDBACK  Based on your code, here are some tips and recommendations: ✗ No Source Code @@ -62,17 +62,17 @@ def test_syntax_error(self): terminal.resolve() clear_report() self.checkFeedback(f.getvalue(), ''' -YOUR CODE We ran your code. Here's the output: + YOUR CODE  We ran your code. Here's the output: -FEEDBACK Based on your code, here are some tips and recommendations: + FEEDBACK  Based on your code, here are some tips and recommendations: ✗ Syntax Error Bad syntax on line 1. Suggestion: Check line 1, the line before it, and the line after it. Ignore blank lines. -TERMINAL OUTPUT For reference, here is the original Python error: + TERMINAL OUTPUT  For reference, here is the original Python error: Line 1 of file answer.py 1 1 2 3 @@ -86,16 +86,16 @@ def test_tifa_feedback(self): terminal.resolve() clear_report() self.checkFeedback(f.getvalue(), ''' -YOUR CODE We ran your code. Here's the output: + YOUR CODE  We ran your code. Here's the output: -FEEDBACK Based on your code, here are some tips and recommendations: + FEEDBACK  Based on your code, here are some tips and recommendations: ✗ Incompatible types You used an addition operation with an integer and a string on line 1. But you can't do that with that operator. Make sure both sides of the operator are the right type. -TERMINAL OUTPUT For reference, here is the original Python error: + TERMINAL OUTPUT  For reference, here is the original Python error: Line 1 of file answer.py 1+'' @@ -109,10 +109,10 @@ def test_runtime_feedback(self): terminal.resolve() clear_report() self.checkFeedback(f.getvalue(), ''' -YOUR CODE We ran your code. Here's the output: + YOUR CODE  We ran your code. Here's the output: -FEEDBACK Based on your code, here are some tips and recommendations: + FEEDBACK  Based on your code, here are some tips and recommendations: ✗ Type Error @@ -126,7 +126,7 @@ def test_runtime_feedback(self): Suggestion: To fix a type error, you should trace through your code. Make sure each expression has the type you expect it to have. -TERMINAL OUTPUT For reference, here is the original Python error: + TERMINAL OUTPUT  For reference, here is the original Python error: Line 2 of file answer.py json.loads('1')+'' @@ -141,16 +141,16 @@ def test_explain(self): terminal.resolve() clear_report() self.checkFeedback(f.getvalue(), ''' -YOUR CODE We ran your code. Here's the output: + YOUR CODE  We ran your code. Here's the output: -FEEDBACK Based on your code, here are some tips and recommendations: + FEEDBACK  Based on your code, here are some tips and recommendations: ✗ Instructor Feedback You should not be using the JSON library at all. -TERMINAL OUTPUT For reference, here is the original Python error: + TERMINAL OUTPUT  For reference, here is the original Python error: Line 2 of file answer.py json.loads('1')+'' @@ -166,10 +166,10 @@ def test_call_assertion(self): terminal.resolve() clear_report() self.checkFeedback(f.getvalue(), ''' -YOUR CODE We ran your code. Here's the output: + YOUR CODE  We ran your code. Here's the output: -FEEDBACK Based on your code, here are some tips and recommendations: + FEEDBACK  Based on your code, here are some tips and recommendations: ✗ Type Error @@ -184,7 +184,7 @@ def test_call_assertion(self): Suggestion: To fix a type error, you should trace through your code. Make sure each expression has the type you expect it to have. -TERMINAL OUTPUT For reference, here is the original Python error: + TERMINAL OUTPUT  For reference, here is the original Python error: Line 1 of file answer.py in x def x(): return 1+''