robotframework / robotframework/robotframework.github.com
'Reverse List' does not return any values in the Variables - Lists examples
未关闭
还没有人认领这个 Issue。
- 主要语言
- HTML
- 星标
- 83
- 派生
- 85
- PR 合并指标
- 30 天内没有已合并 PR
描述
The example 2_Lists.robot in the Variables in the "Getting started" section contains a mistake, see https://robotframework.org/?tab=0&example=Variables#getting-started
Incorrect example:
Test with some Collections keywords
${list}= Create List 1 2 3
Append To List ${list} 4 5 6
${list2}= Create List 7 8 9
${new_list}= Combine Lists ${list} ${list2}
${reversed}= Reverse List ${new_list}
Log To Console ${reversed}
The keyword Combine Lists does not return any values, but only affects to the variable given to the keyword. As a result, the last line will log a None value.
Correction:
Reverse List ${new_list}
Log To Console The reversed list: ${new_list}
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
打开 Variables 的“Getting started”示例 2_Lists.robot,并将 Combine Lists/Reverse List 行与 issue 进行比较。更新示例,使 Reverse List 操作 new_list,并让控制台记录该列表,然后验证渲染后的示例不再打印 None。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- html
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 50/100