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