Skip to content

Commit f44c02d

Browse files
authored
Add a test to robot-name (sameRobotsHaveSameNames) (#2292)
1 parent ea0a85a commit f44c02d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

exercises/practice/robot-name/src/test/java/RobotTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ public void hasName() {
2222
assertIsValidName(robot.getName());
2323
}
2424

25+
@Test
26+
@Ignore("Remove to run test")
27+
public void sameRobotsHaveSameNames() {
28+
assertThat(robot.getName()).isEqualTo(robot.getName());
29+
}
30+
2531
@Ignore("Remove to run test")
2632
@Test
2733
public void differentRobotsHaveDifferentNames() {

0 commit comments

Comments
 (0)