二七王测试:完成 P2 用例,达成测试计划 DoD
- test_deal.js(新):§2 发牌构成——92张/去3-4共16/三家各28+底8/分值(§6.1) - test_arith.js:§3 编码排序(order_cards 降序=设计顺序、is_continuous 相邻链逐段+反例)、 §7 每档小光/过庄分界+升3级补齐 - test_paiju.js:§8.2 亮牌更多边界(6个7仅qi、固定主9→null、固定主10仅zhu) - test_config.js:§10 直接调 export.get_asetcount/get_needroomcard(_joinroom) - test_rpc.js/_rpc.js:§12 端到端(真实驱动 叫分→上庄→选主→埋牌→出牌ready)、 §9 maipai 亮牌门控 + get_deskinfo PushCards 门控 - 02-测试计划.md/README:P2 与 DoD 标记达成 全部单测 204 项断言全绿(node server/games/erqiwang/test/run.js) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -25,4 +25,14 @@ t.eq('房主12局', needroomcard("10000"), 4);
|
||||
t.eq('AA6局', needroomcard("01000"), 1);
|
||||
t.eq('AA12局', needroomcard("11000"), 2);
|
||||
|
||||
// --- 直接调用 export 的接口(替代复刻映射) ---
|
||||
const exp = require('../class.export.js').new();
|
||||
t.eq('export 局数6', exp.get_asetcount("00000"), 6);
|
||||
t.eq('export 局数12', exp.get_asetcount("10000"), 12);
|
||||
t.eq('export 房主6局2张', exp.get_needroomcard("00000"), 2);
|
||||
t.eq('export 房主12局4张', exp.get_needroomcard("10000"), 4);
|
||||
t.eq('export AA6局1张', exp.get_needroomcard("01000"), 1);
|
||||
t.eq('export 加入·房主0张', exp.get_needroomcard_joinroom("00000"), 0);
|
||||
t.eq('export 加入·AA6局1张', exp.get_needroomcard_joinroom("01000"), 1);
|
||||
|
||||
process.exit(t.done('config') ? 0 : 1);
|
||||
|
||||
Reference in New Issue
Block a user