Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 7fac112

Browse files
masters3dmatthewmorgan
authored andcommitted
Update robot-name.spec.js (#336)
exercism/problem-specifications#731
1 parent ef87145 commit 7fac112

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

exercises/robot-name/robot-name.spec.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,6 @@ describe('Robot', function() {
2626
expect(differentRobot.name).not.toEqual(robot.name);
2727
});
2828

29-
xit('there can be lots of robots with different names each', function() {
30-
var i,
31-
numRobots = 10000,
32-
usedNames = {};
33-
34-
for (i = 0; i < numRobots; i++) {
35-
var newRobot = new Robot();
36-
usedNames[newRobot.name] = true;
37-
}
38-
39-
expect(Object.keys(usedNames).length).toEqual(numRobots);
40-
});
41-
4229
xit('is able to reset the name', function() {
4330
var originalName = robot.name;
4431
robot.reset();
@@ -61,4 +48,18 @@ describe('Robot', function() {
6148

6249
expect(Object.keys(usedNames).length).toEqual(numResets + 1);
6350
});
51+
52+
//This test is optional.
53+
xit('there can be lots of robots with different names each', function() {
54+
var i,
55+
numRobots = 10000,
56+
usedNames = {};
57+
58+
for (i = 0; i < numRobots; i++) {
59+
var newRobot = new Robot();
60+
usedNames[newRobot.name] = true;
61+
}
62+
63+
expect(Object.keys(usedNames).length).toEqual(numRobots);
64+
});
6465
});

0 commit comments

Comments
 (0)