Skip to content

Commit f351ec2

Browse files
committed
Remove unnecessary comment and stub code
1 parent fbea7e8 commit f351ec2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lab1/main_test.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,35 @@ const assert = require('assert');
33
const { MyClass, Student } = require('./main');
44

55
test("Test MyClass's addStudent", () => {
6-
// TODO
76
const myClass = new MyClass();
87
const student = new Student();
98
student.setName('John');
109
assert.strictEqual(myClass.addStudent(student), 0);
1110
assert.strictEqual(myClass.addStudent(123), -1);
12-
// throw new Error("Test not implemented");
1311
});
1412

1513
test("Test MyClass's getStudentById", () => {
16-
// TODO
1714
const myClass = new MyClass();
1815
const student = new Student();
1916
student.setName('John');
2017
const newStudentId = myClass.addStudent(student);
2118
assert.strictEqual(myClass.getStudentById(newStudentId), student);
2219
assert.strictEqual(myClass.getStudentById(-2), null);
2320
assert.strictEqual(myClass.getStudentById(2), null);
24-
// throw new Error("Test not implemented");
2521
});
2622

2723
test("Test Student's setName", () => {
28-
// TODO
2924
const myClass = new MyClass();
3025
const student = new Student();
3126
student.setName('John');
3227
assert.strictEqual(student.name, 'John');
3328
student.setName(123);
34-
// throw new Error("Test not implemented");
3529
});
3630

3731
test("Test Student's getName", () => {
38-
// TODO
3932
const myClass = new MyClass();
4033
const student = new Student();
4134
assert.strictEqual(student.getName(), '');
4235
student.setName('John');
4336
assert.strictEqual(student.getName(), 'John');
44-
// throw new Error("Test not implemented");
4537
});

0 commit comments

Comments
 (0)