exercism / gdscript

Exercism exercises in GDScript.
https://exercism.org/tracks/gdscript
MIT License
6 stars 7 forks source link

[New Exercise]: Bob #58

Open glaxxie opened 9 months ago

glaxxie commented 9 months ago

I think the order of the values in the message are incorrect. Made a mistake in my example and i got this error.

{
      "name": "test_non_question_ending_with_whitespace",
      "status": "fail",
      "message": "Expected output was 'Whoa, chill out!', actual output was 'Whatever.'"
    }
func test_non_question_ending_with_whitespace(solution_script):
    var value = "This is a statement ending with whitespace      "
    var expected = "Whatever."
    return [solution_script.response(value), expected]

Correct message should be:


"Expected output was 'Whatever.', actual output was 'Whoa, chill out!'."