test(设备闸): 补第二份真样本(单 mission,我们不在列表里)+ 把"状态对调"那条从弱断言改成**严格正例**(pi §4②)
- 新样本 `fixtures/aa-dump-l-single-theirs.txt`:由真样本删掉我们那块得到,形状与 pi 12:03 的活 dump 一致 (单 mission、`state #FOREGROUND` 是对方)⇒ 正确判决 **`other`**,不是 `unverified` —— 否则会把"别人占着前台"和"没读到"混成一种; - `#FOREGROUND` 全删 ⇒ `unverified`(缺证据不猜); - ★ 原"状态对调"那条我原先只断言 `ours || unverified`(当时心虚写宽的)。pi 指出: **只判"读不出来就不许过"是不够的,还得有正例证明"读出来了真的能过"** —— 否则这道闸的失效方式是 "永远说未验"(更安静的失效,而且欠账永远还不完)。已改成严格断言 `ours` + `mayAssertOn === true`。 - 登记 5→7(我一度写成 8:我只加了 2 条,5+2=7 —— 相等契约下这种手误会被套件当场抓住,这正是它该干的事)。
This commit is contained in:
14
client/electron/test/fixtures/aa-dump-l-single-theirs.txt
vendored
Normal file
14
client/electron/test/fixtures/aa-dump-l-single-theirs.txt
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
User ID #100
|
||||
current mission lists:{
|
||||
Mission ID #31 mission name #[#com.example.homeagent:entry:EntryAbility] lockedState #0 mission affinity #[]
|
||||
AbilityRecord ID #31
|
||||
app name [com.example.homeagent]
|
||||
main name [EntryAbility]
|
||||
bundle name [com.example.homeagent]
|
||||
ability type [PAGE]
|
||||
state #FOREGROUND start time [82256]
|
||||
app state #FOREGROUND
|
||||
ready #1 window attached #0 launcher #0
|
||||
callee connections:
|
||||
isKeepAlive: false
|
||||
}
|
||||
Reference in New Issue
Block a user