File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
main/java/fi/helsinki/cs/tmc/langs/python3
java/fi/helsinki/cs/tmc/langs/python3
resources/failparsing/test Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ private String parseTestName(String testName) {
73
73
private String parseTestMessage (String testMessage ) {
74
74
String matcher = testMessage .toLowerCase ();
75
75
if (matcher .matches ("^(true|false) is not (true|false) :[\\ s\\ S]*" )) {
76
- return testMessage .split (":" )[1 ].trim ();
76
+ return testMessage .split (":" , 2 )[1 ].trim ();
77
77
}
78
78
return testMessage ;
79
79
}
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ public void testFailingTestNoBoolIsBool() {
123
123
assertEquals (RunResult .Status .TESTS_FAILED , runResult .status );
124
124
TestResult testResult = runResult .testResults .get (0 );
125
125
assertEquals (
126
- "No false is not true at beginning\n newlines are kept" ,
126
+ "No false is not true at beginning\n newlines are: kept:not:split " ,
127
127
testResult .getMessage ());
128
128
}
129
129
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class FailParsingTest(unittest.TestCase):
6
6
7
7
@points ('1.1' )
8
8
def test_new (self ):
9
- self .assertFalse (True , "No false is not true at beginning\n newlines are kept" )
9
+ self .assertFalse (True , "No false is not true at beginning\n newlines are: kept:not:split " )
10
10
11
11
if __name__ == '__main__' :
12
12
unittest .main ()
You can’t perform that action at this time.
0 commit comments