timetable performance optimization

This commit is contained in:
2026-09-25 22:27:10 +02:00
parent ef7d17033d
commit ed8e52f475
13 changed files with 391 additions and 137 deletions
+9
View File
@@ -86,6 +86,15 @@ void main() {
final d = DateTime(2026, 5, 18, 13, 45);
expect(d.subtractDays(5), d.addDays(-5));
});
test('dateOnly drops the time of day', () {
expect(DateTime(2026, 9, 24, 13, 45).dateOnly, DateTime(2026, 9, 24));
});
test('mondayOfWeek returns Monday midnight for any weekday', () {
expect(DateTime(2026, 9, 21).mondayOfWeek, DateTime(2026, 9, 21));
expect(DateTime(2026, 9, 27, 23, 59).mondayOfWeek, DateTime(2026, 9, 21));
});
});
group('DateTimeFormatting', () {