From 7bbac51832ca36ce100e5c3f373419efc90858e4 Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Mon, 21 Sep 2026 21:56:24 +0800 Subject: test(kernel): 用 List.item 替换弃用的 List.nth,全解决方案 Release 构建归零告警 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/LivingVillage.Kernel.Tests/M6aTests.fs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/LivingVillage.Kernel.Tests/M6aTests.fs b/src/LivingVillage.Kernel.Tests/M6aTests.fs index 7184a75..fc8cc3a 100644 --- a/src/LivingVillage.Kernel.Tests/M6aTests.fs +++ b/src/LivingVillage.Kernel.Tests/M6aTests.fs @@ -238,15 +238,15 @@ type M6aTests () = Assert.AreEqual(45, fisher.InitialMoney) Assert.AreEqual(95.0f, fisher.InitialEnergy) Assert.AreEqual(8, snd (List.head fisher.InitialInventory)) - Assert.AreEqual(3, snd (List.nth fisher.InitialInventory 1)) + Assert.AreEqual(3, snd (List.item 1 fisher.InitialInventory)) let peddler = Occupation.profileOf Occupation.Peddler Assert.AreEqual(90, peddler.InitialMoney) Assert.AreEqual(6, snd (List.head peddler.InitialInventory)) - Assert.AreEqual(4, snd (List.nth peddler.InitialInventory 1)) + Assert.AreEqual(4, snd (List.item 1 peddler.InitialInventory)) let scholar = Occupation.profileOf Occupation.Scholar Assert.AreEqual(70, scholar.InitialMoney) Assert.AreEqual(10, snd (List.head scholar.InitialInventory)) - Assert.AreEqual(2, snd (List.nth scholar.InitialInventory 1)) + Assert.AreEqual(2, snd (List.item 1 scholar.InitialInventory)) [] member _.WorldSaveV3RoundTripsOccupation () = -- cgit v1.2.3