Skip to content
Merged
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
3 changes: 3 additions & 0 deletions devel/216_52.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# [216_52] 迁移 list的测试用例到scheme/base

## 2026/04/03 迁移 list的测试用例到scheme/base
Comment on lines +1 to +3
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 开发文档缺少必要章节

devel/216_52.md 仅有标题和一行日期,缺少 CLAUDE.md 模板要求的以下章节:## 任务相关的代码文件## 如何测试、以及 ### What / ### Why / ### How 子章节。参考同类文件 devel/216_51.md 的完整结构。

Context Used: CLAUDE.md (source)

41 changes: 41 additions & 0 deletions tests/scheme/base-test.scm
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,44 @@
;; identity - 原样返回输入值
;; any? - 判断是否存在真值
;; typed-lambda - 带类型标注的 lambda 语法


;; 六、序对操作
;; pair? - 判断是否为序对
;; car - 获取序对的 car 部分
;; cdr - 获取序对的 cdr 部分
;; set-car! - 修改序对的 car 部分
;; set-cdr! - 修改序对的 cdr 部分
;; caar - 获取 car 的 car
;; cadr - 获取 car 的 cdr
;; cddr - 获取 cdr 的 cdr

;; 七、列表判断
;; null? - 判断是否为空列表
;; list? - 判断是否为列表

;; 八、列表构造
;; make-list - 创建指定长度的列表
;; list - 创建列表
;; cons - 构造序对

;; 九、列表查询
;; length - 获取列表长度
;; append - 连接多个列表
;; reverse - 反转列表

;; 十、列表选择
;; list-tail - 获取列表尾部
;; list-ref - 获取指定索引的元素
;; list-set! - 修改指定索引的元素
;; memq - 按 eq? 查找元素
;; memv - 按 eqv? 查找元素
;; member - 按 equal? 查找元素

;; 十一、关联列表
;; assq - 按 eq? 在关联列表中查找
;; assv - 按 eqv? 在关联列表中查找
;; assoc - 按 equal? 在关联列表中查找

;; 十二、列表复制
;; list-copy - 复制列表
Comment on lines +94 to +133
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 新增章节与已有章节存在重复条目

新增的第六至十二节(序对操作、列表判断、列表构造等)中,pair?list?carcdrconslistappendreverselist-ref 等函数已在第二节"基础数据结构"中列出,造成重复。建议移除第二节中已有的条目,或合并内容,保持索引的一致性。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 文件末尾缺少换行符

diff 显示 \ No newline at end of file,文件末尾应以换行符结尾,与仓库其他文件保持一致。

Suggested change
;; list-copy - 复制列表
;; list-copy - 复制列表

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
67 changes: 0 additions & 67 deletions tests/scheme/list-test.scm

This file was deleted.

Loading