File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,14 +20,5 @@ function testAssertionFailure(testCase)
2020 testCase .assertEqual(1 + 1 , 11 );
2121 testCase .assertEqual(1 + 1 , 11 );
2222 end
23-
24- function testFatalAssertionFailure(testCase )
25- testCase .fatalAssertEqual(1 + 1 , 11 );
26- end
27-
28- function testNotRun(testCase )
29- onetyone = 11 ;
30- testCase .verifyEqual(onetyone , 11 );
31- end
3223 end
3324end
Original file line number Diff line number Diff line change 1+ % Named ValidationTest to run at the end of the suite
2+ % because it contains a fatal assertion failure.
3+ classdef ValidationTest < matlab .unittest .TestCase
4+ methods (Test )
5+ function testFatalAssertionFailure(testCase )
6+ testCase .fatalAssertEqual(1 + 1 , 11 );
7+ end
8+
9+ function testNotRun(testCase )
10+ onetyone = 11 ;
11+ testCase .verifyEqual(onetyone , 11 );
12+ end
13+ end
14+ end
You can’t perform that action at this time.
0 commit comments