feat(lol): add tomorrow and next-week schedules

This commit is contained in:
tiennm99 committed 2026-07-06 20:20:07 +07:00
1 parent 0a4d237391
commit 00a5ff1c0b
9 files changed
+182 -22

No files matched your search

+9
View File
@@ -128,6 +128,15 @@ func TestIctWeekStartOf(t *testing.T) {
}
}
func TestIctNextWeekStartOf(t *testing.T) {
// refNow is Sat 2026-05-09 19:00 ICT. Next ICT calendar week starts
// Mon 2026-05-11 00:00 ICT = 2026-05-10 17:00 UTC.
want := time.Date(2026, 5, 10, 17, 0, 0, 0, time.UTC)
if got := ictNextWeekStartOf(refNow); !got.Equal(want) {
t.Errorf("ictNextWeekStartOf(Sat) = %v, want %v", got, want)
}
}
func TestAddDays(t *testing.T) {
base := time.Date(2026, 5, 9, 12, 30, 0, 0, time.UTC)
got := addDays(base, 3)