Skip to content

Commit 1b91da8

Browse files
committed
triangle: change test exception param to @rule
1 parent 4782e3c commit 1b91da8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎exercises/triangle/src/test/java/TriangleTest.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class TriangleTest {
99

1010
@Rule
1111
public final ExpectedException thrown = ExpectedException.none();
12+
1213
@Test
1314
public void equilateralTriangleHaveEqualSides() throws Exception {
1415
Triangle triangle = new Triangle(2, 2, 2);

0 commit comments

Comments
 (0)