Add regex command implementation
This commit is contained in:
14
tests/fixtures/regex/README.md
vendored
Normal file
14
tests/fixtures/regex/README.md
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# Regex Command Fixtures
|
||||
|
||||
These fixtures support contract and integration testing for the `renamer regex` command. Each
|
||||
subdirectory contains representative filenames used across preview, apply, conflict, and
|
||||
validation scenarios.
|
||||
|
||||
- `baseline/` — ASCII word + digit combinations (e.g., `alpha-123.log`) used to validate basic
|
||||
capture group substitution.
|
||||
- `unicode/` — Multilingual filenames to verify RE2 Unicode handling and ledger persistence.
|
||||
- `mixed/` — Build-style artifacts with underscores/dashes for automation-style rename flows.
|
||||
- `case-fold/` — Differing only by case to simulate case-insensitive duplicate conflicts.
|
||||
|
||||
Tests should copy these directories to temporary working paths before mutation to keep fixtures
|
||||
idempotent.
|
||||
1
tests/fixtures/regex/baseline/alpha-123.log
vendored
Normal file
1
tests/fixtures/regex/baseline/alpha-123.log
vendored
Normal file
@@ -0,0 +1 @@
|
||||
baseline fixture alpha-123
|
||||
1
tests/fixtures/regex/baseline/beta-456.log
vendored
Normal file
1
tests/fixtures/regex/baseline/beta-456.log
vendored
Normal file
@@ -0,0 +1 @@
|
||||
baseline fixture beta-456
|
||||
1
tests/fixtures/regex/baseline/gamma-789.log
vendored
Normal file
1
tests/fixtures/regex/baseline/gamma-789.log
vendored
Normal file
@@ -0,0 +1 @@
|
||||
test fixture gamma-789
|
||||
1
tests/fixtures/regex/case-fold/SAMPLE.txt
vendored
Normal file
1
tests/fixtures/regex/case-fold/SAMPLE.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
case fold fixture upper sample
|
||||
1
tests/fixtures/regex/case-fold/Sample.txt
vendored
Normal file
1
tests/fixtures/regex/case-fold/Sample.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
case fold fixture upper-lower sample
|
||||
1
tests/fixtures/regex/case-fold/sample.txt
vendored
Normal file
1
tests/fixtures/regex/case-fold/sample.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
case fold fixture lower sample
|
||||
1
tests/fixtures/regex/mixed/build_101_release.tar.gz
vendored
Normal file
1
tests/fixtures/regex/mixed/build_101_release.tar.gz
vendored
Normal file
@@ -0,0 +1 @@
|
||||
placeholder archive fixture 101
|
||||
1
tests/fixtures/regex/mixed/build_102_hotfix.tar.gz
vendored
Normal file
1
tests/fixtures/regex/mixed/build_102_hotfix.tar.gz
vendored
Normal file
@@ -0,0 +1 @@
|
||||
placeholder archive fixture 102
|
||||
1
tests/fixtures/regex/mixed/feature-demo_2025-10-01.txt
vendored
Normal file
1
tests/fixtures/regex/mixed/feature-demo_2025-10-01.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
feature demo placeholder file
|
||||
1
tests/fixtures/regex/unicode/résumé-2025.md
vendored
Normal file
1
tests/fixtures/regex/unicode/résumé-2025.md
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Markdown résumé placeholder for Unicode accent coverage.
|
||||
1
tests/fixtures/regex/unicode/项目-报告-01.txt
vendored
Normal file
1
tests/fixtures/regex/unicode/项目-报告-01.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
示例文件,用于验证Unicode处理。
|
||||
Reference in New Issue
Block a user