From fbea7e8c3908f46fbcce3b8a750157294427acac Mon Sep 17 00:00:00 2001 From: Deron5566 Date: Thu, 29 Feb 2024 18:10:21 +0800 Subject: [PATCH] update test cases in main_test.js --- lab1/main_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lab1/main_test.js b/lab1/main_test.js index 8433371c..f4780162 100644 --- a/lab1/main_test.js +++ b/lab1/main_test.js @@ -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"); });