diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-09-25 19:34:10 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-09-25 19:34:10 +0200 |
| commit | 83086eda30405785bd0cd6b864187b3bf4125cff (patch) | |
| tree | 3e0a46c0dbe2346bc706827688830754500c487b | |
| parent | 790af83e781568e769eabbfa069fc4715cb3db11 (diff) | |
| download | bycs-sol-83086eda30405785bd0cd6b864187b3bf4125cff.tar.gz bycs-sol-83086eda30405785bd0cd6b864187b3bf4125cff.zip | |
mock: add more students to test the mandatory selection algorithm
| -rw-r--r-- | src/mock.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mock.ts b/src/mock.ts index 125c73f..cf87a78 100644 --- a/src/mock.ts +++ b/src/mock.ts @@ -4,6 +4,12 @@ import { Student } from "./student-common.ts"; const students = [ new Student(1, "foo bar"), new Student(2, "maxi mustermensch"), + new Student(3, "1"), + new Student(4, "2"), + new Student(5, "3"), + new Student(6, "4"), + new Student(7, "5"), + new Student(8, "6"), ]; async function fetchStudentsMock(_id?: number, _name?: string) { @@ -55,6 +61,27 @@ for (const s of students) { s, Graduation.from(s, [GraduationChange.newRedPointChange(false, "", "Florian Fischer")]), ); + break; + case "1": + case "2": + case "3": + case "4": + graduations.set( + s, + Graduation.from(s, [GraduationChange.newGreenPointChange(true, "", "Florian Fischer")]), + ); + break; + case "5": + graduations.set( + s, + Graduation.from(s, [ + GraduationChange.newGreenPointChange(true, "", "Florian Fischer"), + GraduationChange.newGreenPointChange(true, "", "Florian Fischer"), + ]), + ); + break; + default: + graduations.set(s, Graduation.from(s, [])); } } |
