Skip to content

Commit

Permalink
update test cases in main_test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Deron5566 committed Feb 29, 2024
1 parent 7e3f807 commit fbea7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lab1/main_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test("Test MyClass's getStudentById", () => {
student.setName('John');
const newStudentId = myClass.addStudent(student);
assert.strictEqual(myClass.getStudentById(newStudentId), student);
assert.strictEqual(myClass.getStudentById(-1), null);
assert.strictEqual(myClass.getStudentById(-2), null);
assert.strictEqual(myClass.getStudentById(2), null);
// throw new Error("Test not implemented");
});
Expand Down

0 comments on commit fbea7e8

Please sign in to comment.