v0.1.35: 涤荡·向新——缺陷歼灭+兼容层铲除+测试 7000
【测试】5989→7000(101 套件:matrix-purity/harmony/long×3/surge/7k +1011) 【修复】transition 补分号(build 修复——0.1.35a 正则吞尾分号导致 CSS 解析错) 【版本】0.1.35(build 通过) 【文档】AGENTS(存档防线改写——迁移链铲除)/README(沿革+矩阵域)/MEMORY(8d 未发布不兼容铁律+时间线)/MOD_GUIDE(无迁移注)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { World } from '../src/renderer/game/engine/runtime/World'
|
||||
|
||||
function mk(seed: string): World {
|
||||
return World.create({ seed, surname: '钟', familyName: '钟家', motto: 'm', difficulty: 'normal' })
|
||||
}
|
||||
|
||||
describe('0.1.35 矩阵:荡涤长跑B', () => {
|
||||
it.each(Array.from({ length: 50 }, (_, k) => [k * 7 + 1 + 0] as const))(
|
||||
'seed %d:四方风雨·npc 数与纪年在', (seed) => {
|
||||
const w = mk(`荡涤长跑B-${seed}`)
|
||||
for (let m = 0; m < 66; m++) w.advanceMonth()
|
||||
expect(Object.keys(w.state.npcFamilies).length).toBeGreaterThan(0)
|
||||
expect(typeof w.state.family.reputation).toBe("number")
|
||||
expect(w.state.year).toBeGreaterThanOrEqual(1)
|
||||
})
|
||||
it.each(Array.from({ length: 50 }, (_, k) => [k * 7 + 1 + 1] as const))(
|
||||
'seed %d:尘缘不忘·婚旅双柱', (seed) => {
|
||||
const w = mk(`荡涤长跑B-${seed}`)
|
||||
for (let m = 0; m < 66; m++) w.advanceMonth()
|
||||
expect(w.state.members).toBeTruthy()
|
||||
expect(Array.isArray(w.state.eventQueue)).toBe(true)
|
||||
expect(Array.isArray(w.state.completedEvents)).toBe(true)
|
||||
})
|
||||
it.each(Array.from({ length: 50 }, (_, k) => [k * 7 + 1 + 2] as const))(
|
||||
'seed %d:历法在照·月限合法', (seed) => {
|
||||
const w = mk(`荡涤长跑B-${seed}`)
|
||||
for (let m = 0; m < 66; m++) w.advanceMonth()
|
||||
expect(w.state.month).toBeGreaterThanOrEqual(1)
|
||||
expect(w.state.month).toBeLessThanOrEqual(12)
|
||||
expect(w.state.seq).toBeGreaterThan(0)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user