diff --git a/test/engine_spec.rb b/test/engine_spec.rb --- a/test/engine_spec.rb +++ b/test/engine_spec.rb @@ -81,6 +81,14 @@ :comment => /FAILED: [^P]P/}) end + it "should score test runs correctly when submission fails in some test case" do + grader_should(:grade => "add_fail_test_case_1.c", + :on => @problem_test_normal, + :and_report => { + :score => 105, + :comment => /^FAILED:/}) + end + it "should fail submission with non-zero exit status" do violated("has not been implemented") end