案例
A static website
A static website. The input is a small public learning fixture; it contains no private production data.
输入
site/index.html
site/assets/app.js
site/assets/style.cssExpected checks
Case-insensitiveContains "index.html"
Contains "app.js"
Contains "style.css"- 文件路径分隔符
/- 分隔符
Line feed
A Python package
A Python package. The input is a small public learning fixture; it contains no private production data.
输入
pkg/__init__.py
pkg/parse.py
tests/test_parse.pyExpected checks
Case-insensitiveContains "__init__.py"
Contains "parse.py"
Contains "test_parse.py"- 文件路径分隔符
/- 分隔符
Line feed
Release artefacts
Release artefacts. The input is a small public learning fixture; it contains no private production data.
输入
dist/app-linux.zip
dist/app-macos.zip
checksums/SHA256SUMSExpected checks
Case-insensitiveContains "app-linux.zip"
Contains "app-macos.zip"
Contains "SHA256SUMS"- 文件路径分隔符
/- 分隔符
Line feed
Monthly receipts
Monthly receipts. The input is a small public learning fixture; it contains no private production data.
输入
2025/01/a.pdf
2025/02/b.pdf
2025/02/c.pdfExpected checks
Case-insensitiveContains "a.pdf"
Contains "b.pdf"
Contains "c.pdf"- 文件路径分隔符
/- 分隔符
Line feed
A small documentation tree
A small documentation tree. The input is a small public learning fixture; it contains no private production data.
输入
docs/start.md
docs/api/auth.md
docs/api/errors.mdExpected checks
Case-insensitiveContains "start.md"
Contains "auth.md"
Contains "errors.md"- 文件路径分隔符
/- 分隔符
Line feed
basic example
输入
/test_dir1/test_file1.txt
/test_dir1/test_file2.txt
/test_dir2/test_file1.txtExpected answer
test_dir1
|---test_file1.txt
|---test_file2.txt
test_dir2
|---test_file1.txt- 文件路径分隔符
/- 分隔符
Line feed
参数
| 参数 | 默认值 | 输入与选项 |
|---|---|---|
| 文件路径分隔符 | "/" | 支持 \n、\r 和 \t 等转义序列 |
| 分隔符 | 行 feed | 行 feed, CRLF, 空格, 逗号, 分号, 冒号, Nothing (separate 字符) |