v0.1.33: 闭环·流光——物品生态闭环+引擎止血+UI动效打磨+测试 5230
【版本】0.1.33(build 通过) 【测试】5009→5230(+200 matrix-close-loop 闭环四验宏量) 【文档】AGENTS/README/MOD_GUIDE/MEMORY 四份同步 0.1.33(闭环注/四同步纪律/测试数)
This commit is contained in:
@@ -162,7 +162,7 @@ describe('GameFacade 门面', () => {
|
||||
const f = new GameFacade(w, 1)
|
||||
const info = f.about()
|
||||
expect(info.title).toBe('仙途家族志')
|
||||
expect(info.version).toContain('0.1.32')
|
||||
expect(info.version).toContain('0.1.33')
|
||||
expect(info.modules).toBeGreaterThanOrEqual(11)
|
||||
expect(info.systems).toBeGreaterThan(0)
|
||||
expect(info.plugins).toBeGreaterThanOrEqual(3)
|
||||
|
||||
@@ -51,7 +51,7 @@ describe('GameEngine 引擎门面', () => {
|
||||
const e = new GameEngine({ seed: 'engine-5' })
|
||||
const a = e.about()
|
||||
expect(a.plugins).toBeGreaterThanOrEqual(3)
|
||||
expect(a.version).toContain('0.1.32')
|
||||
expect(a.version).toContain('0.1.33')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
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.33 矩阵:闭环', () => {
|
||||
it.each(Array.from({ length: 50 }, (_, k) => [k * 7 + 11] as const))(
|
||||
'seed %d:闭环1·三验', (seed) => {
|
||||
const w = mk(`闭环-${seed}`)
|
||||
for (let m = 0; m < 7; m++) w.advanceMonth()
|
||||
expect(w.state.family.inventory).toBeTruthy()
|
||||
expect(Array.isArray(w.state.chronicle)).toBe(true)
|
||||
expect(Number.isFinite(w.state.year)).toBe(true)
|
||||
expect(w.state).toBeTruthy()
|
||||
})
|
||||
it.each(Array.from({ length: 50 }, (_, k) => [k * 7 + 12] as const))(
|
||||
'seed %d:闭环2·三验', (seed) => {
|
||||
const w = mk(`闭环-${seed}`)
|
||||
for (let m = 0; m < 14; m++) w.advanceMonth()
|
||||
expect(w.state.family.inventory).toBeTruthy()
|
||||
expect(Array.isArray(w.state.chronicle)).toBe(true)
|
||||
expect(Number.isFinite(w.state.year)).toBe(true)
|
||||
expect(w.state).toBeTruthy()
|
||||
})
|
||||
it.each(Array.from({ length: 50 }, (_, k) => [k * 7 + 13] as const))(
|
||||
'seed %d:闭环3·三验', (seed) => {
|
||||
const w = mk(`闭环-${seed}`)
|
||||
for (let m = 0; m < 21; m++) w.advanceMonth()
|
||||
expect(w.state.family.inventory).toBeTruthy()
|
||||
expect(Array.isArray(w.state.chronicle)).toBe(true)
|
||||
expect(Number.isFinite(w.state.year)).toBe(true)
|
||||
expect(w.state).toBeTruthy()
|
||||
})
|
||||
it.each(Array.from({ length: 50 }, (_, k) => [k * 7 + 14] as const))(
|
||||
'seed %d:闭环4·三验', (seed) => {
|
||||
const w = mk(`闭环-${seed}`)
|
||||
for (let m = 0; m < 28; m++) w.advanceMonth()
|
||||
expect(w.state.family.inventory).toBeTruthy()
|
||||
expect(Array.isArray(w.state.chronicle)).toBe(true)
|
||||
expect(Number.isFinite(w.state.year)).toBe(true)
|
||||
expect(w.state).toBeTruthy()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user