Skip to content

Commit

Permalink
Update main_test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver84586454 authored Mar 17, 2024
1 parent 93b8e9f commit 45b4469
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 @@ -37,10 +37,10 @@ test("Test Student's getName", () => {
// TODO
throw new Error("Test not implemented");
});

const student = new Student();
const name = "student1";
student.setName(100);
assert.strictEqual(student.getName(), "");
student.setName(name);
assert.strictEqual(student.getName(), name);
});

0 comments on commit 45b4469

Please sign in to comment.