Files
IOT_SIM/samples/p1-t2-面向对象特性/checks.yaml
T
xuyueandClaude Opus 5.5 de277d3e9d
CI/CD / test (push) Canceled after 0s
CI/CD / deploy (push) Canceled after 0s
用 bun fmt 格式化全部代码和文档
- bunfig.toml 的 [fmt]:不写分号、单引号、一行最长 160,和原来的写法一致
- .prettierignore:docs/教材摘要/ 是书上的摘录,不格式化
- 模板里一行写两条语句的事件处理(@keydown.delete、@dblclick)改成调用方法:去掉分号后拆成两行,Vue 编译不过

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:02:33 +08:00

19 lines
790 B
YAML

# 评分规则:书上评价表的功能项。每项单独启动一次程序,按步骤操作,核对结果。
# 格式说明见 server/src/grading/checks.ts
- title: 计算器能正确计算(装箱与拆箱)
steps:
- text: { control: txtNum1, value: '7' }
- text: { control: txtNum2, value: '2' }
- select: { control: cmboxType, item: '+' }
- click: btnCalculate
- expect: { control: txtResult, text: '9' }
- select: { control: cmboxType, item: '/' }
- click: btnCalculate
- expect: { control: txtResult, text: '3.5' }
- title: 多态:不同国家的人说不同的语言
steps:
- click: btnDisplay
- expect: { control: txtDispaly, contains: 张三说的是汉语 }
- expect: { control: txtDispaly, contains: Mary说的是英语 }