From f351ec257acf650c4ca76aeec8c4bb5db8690c99 Mon Sep 17 00:00:00 2001 From: Deron5566 Date: Thu, 7 Mar 2024 20:15:54 +0800 Subject: [PATCH] Remove unnecessary comment and stub code --- lab1/main_test.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lab1/main_test.js b/lab1/main_test.js index f4780162..9d32cb55 100644 --- a/lab1/main_test.js +++ b/lab1/main_test.js @@ -3,17 +3,14 @@ const assert = require('assert'); const { MyClass, Student } = require('./main'); test("Test MyClass's addStudent", () => { - // TODO const myClass = new MyClass(); const student = new Student(); student.setName('John'); assert.strictEqual(myClass.addStudent(student), 0); assert.strictEqual(myClass.addStudent(123), -1); - // throw new Error("Test not implemented"); }); test("Test MyClass's getStudentById", () => { - // TODO const myClass = new MyClass(); const student = new Student(); student.setName('John'); @@ -21,25 +18,20 @@ test("Test MyClass's getStudentById", () => { assert.strictEqual(myClass.getStudentById(newStudentId), student); assert.strictEqual(myClass.getStudentById(-2), null); assert.strictEqual(myClass.getStudentById(2), null); - // throw new Error("Test not implemented"); }); test("Test Student's setName", () => { - // TODO const myClass = new MyClass(); const student = new Student(); student.setName('John'); assert.strictEqual(student.name, 'John'); student.setName(123); - // throw new Error("Test not implemented"); }); test("Test Student's getName", () => { - // TODO const myClass = new MyClass(); const student = new Student(); assert.strictEqual(student.getName(), ''); student.setName('John'); assert.strictEqual(student.getName(), 'John'); - // throw new Error("Test not implemented"); }); \ No newline at end of file