summaryrefslogtreecommitdiff
path: root/src/LivingVillage.Desktop.Tests/P16UiTests.fs
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-22 02:07:21 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-22 02:07:21 +0800
commitcc8dff4d567e8257b3cef66df804fbddb8ee3463 (patch)
treed6b925aad3461cabf872cb2306a6f0f39be57e49 /src/LivingVillage.Desktop.Tests/P16UiTests.fs
parentfb10189b8e0b2a3eb0c102ed9383151e5062c792 (diff)
parent37953a4b58dfc5f3b8aedf10ad6f1474c2960767 (diff)
downloadliving-village-cc8dff4d567e8257b3cef66df804fbddb8ee3463.tar.gz
merge: P18 黄昏暖色真实渲染(独立复验全绿 Desktop 108/Kernel 89)
Diffstat (limited to 'src/LivingVillage.Desktop.Tests/P16UiTests.fs')
-rw-r--r--src/LivingVillage.Desktop.Tests/P16UiTests.fs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/LivingVillage.Desktop.Tests/P16UiTests.fs b/src/LivingVillage.Desktop.Tests/P16UiTests.fs
index b071dfa..2e474ac 100644
--- a/src/LivingVillage.Desktop.Tests/P16UiTests.fs
+++ b/src/LivingVillage.Desktop.Tests/P16UiTests.fs
@@ -111,6 +111,10 @@ type P16HudTests () =
Assert.AreEqual<string>("夜晚", M6Presentation.timePeriodLabel 0L)
Assert.AreEqual<string>("清晨", M6Presentation.timePeriodLabel (6L * ticksPerHour))
Assert.AreEqual<string>("黄昏", M6Presentation.timePeriodLabel (19L * ticksPerHour))
+ // P18: 黄昏 covers the golden hour through 20:59; 21:00 onwards is 夜晚.
+ Assert.AreEqual<string>("黄昏", M6Presentation.timePeriodLabel (20L * ticksPerHour))
+ Assert.AreEqual<string>("黄昏", M6Presentation.timePeriodLabel (int64 20 * ticksPerHour + ticksPerHour * 3L / 4L))
+ Assert.AreEqual<string>("夜晚", M6Presentation.timePeriodLabel (21L * ticksPerHour))
[<TestMethod>]
member _.HudNightPaletteLeansCoolAndLabelsAreAtlasBacked () =