Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```markdown
---
sidebar_position: 1
---
# 编写单元测试
Expand Down Expand Up @@ -82,4 +82,3 @@ if __name__ == '__main__':
2. **空输入**:第三个测试确认 `calculate_total` 能正确处理空购物车。
3. **多个商品**:第四个测试验证购物车中多个商品的总成本计算。
4. **错误处理**:第五个测试检查当输入缺少必要键时 `calculate_item_cost` 的行为。
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```markdown
---
sidebar_position: 11
---

Expand Down Expand Up @@ -26,4 +26,3 @@ sidebar_position: 11
<img width="900" height="650" src="https://github.com/user-attachments/assets/81d76e57-3f0c-4564-99fd-8b82cae03cf6"/>
</p>
:::
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```markdown
---
sidebar_position: 8
---

Expand All @@ -22,4 +22,3 @@ sidebar_position: 8
<img width="850" height="600" src="https://github.com/user-attachments/assets/d466fc3a-174d-40b8-ba3b-3ab4c767546b"/>
</p>
:::
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```markdown
---
sidebar_position: 5
---

Expand Down Expand Up @@ -30,4 +30,3 @@ sidebar_position: 5
<img width="800" height="650" src="https://github.com/user-attachments/assets/8c189ca6-106c-4f21-b928-0a8f94d0cf26"/>
</p>
:::
```