diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-21 21:56:24 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-21 21:56:24 +0800 |
| commit | 7bbac51832ca36ce100e5c3f373419efc90858e4 (patch) | |
| tree | 734853336eef97c26ac4bd6aca1909977a30ad5b /src/LivingVillage.Kernel.Tests/M6aTests.fs | |
| parent | aa527db03d7359535a78bc6b759f21aa354f6396 (diff) | |
| download | living-village-7bbac51832ca36ce100e5c3f373419efc90858e4.tar.gz | |
test(kernel): 用 List.item 替换弃用的 List.nth,全解决方案 Release 构建归零告警
Diffstat (limited to 'src/LivingVillage.Kernel.Tests/M6aTests.fs')
| -rw-r--r-- | src/LivingVillage.Kernel.Tests/M6aTests.fs | 6 |
1 files changed, 3 insertions, 3 deletions
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<int>(45, fisher.InitialMoney) Assert.AreEqual<float32>(95.0f, fisher.InitialEnergy) Assert.AreEqual<int>(8, snd (List.head fisher.InitialInventory)) - Assert.AreEqual<int>(3, snd (List.nth fisher.InitialInventory 1)) + Assert.AreEqual<int>(3, snd (List.item 1 fisher.InitialInventory)) let peddler = Occupation.profileOf Occupation.Peddler Assert.AreEqual<int>(90, peddler.InitialMoney) Assert.AreEqual<int>(6, snd (List.head peddler.InitialInventory)) - Assert.AreEqual<int>(4, snd (List.nth peddler.InitialInventory 1)) + Assert.AreEqual<int>(4, snd (List.item 1 peddler.InitialInventory)) let scholar = Occupation.profileOf Occupation.Scholar Assert.AreEqual<int>(70, scholar.InitialMoney) Assert.AreEqual<int>(10, snd (List.head scholar.InitialInventory)) - Assert.AreEqual<int>(2, snd (List.nth scholar.InitialInventory 1)) + Assert.AreEqual<int>(2, snd (List.item 1 scholar.InitialInventory)) [<TestMethod>] member _.WorldSaveV3RoundTripsOccupation () = |
