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