Merge branch 'review/slice-2-recheck'

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	docs/phases/reviewed.md
This commit is contained in:
Leonid Pershin
2026-08-21 10:00:24 +03:00
4 changed files with 100 additions and 1 deletions
@@ -127,6 +127,13 @@ public class RosterGeneratorTests
Assert.DoesNotContain(demand.Staff, opening => opening.Position == "Teacher");
Assert.DoesNotContain(demand.Staff, opening => opening.RoomId == "computer-lab");
Assert.Contains(demand.Staff, opening => opening.RoomId == "library" && opening.Position == "Librarian");
// Phase 7: homeroom captions are room numbers, not class names the generator would
// otherwise try to parse. The map file itself is not this test's to rewrite.
var homerooms = map.Rooms.Where(room => room.Def == "Classroom").ToArray();
Assert.Equal(11, homerooms.Length);
Assert.All(homerooms, room => Assert.Matches(@"^\d{3}$", room.Label));
Assert.Contains(homerooms, room => room.Label == "204");
}
[Fact]