From 83086eda30405785bd0cd6b864187b3bf4125cff Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 25 Sep 2026 19:34:10 +0200 Subject: mock: add more students to test the mandatory selection algorithm --- src/mock.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src') 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, [])); } } -- cgit v1.2.3