Skip to content

Comments

Changeover to JSON-based testcases and clean dictionary outputs#1006

Merged
BYVoid merged 4 commits intoBYVoid:masterfrom
frankslin:feature/issue-1003
Jan 13, 2026
Merged

Changeover to JSON-based testcases and clean dictionary outputs#1006
BYVoid merged 4 commits intoBYVoid:masterfrom
frankslin:feature/issue-1003

Conversation

@frankslin
Copy link
Contributor

Addresses #1003

@frankslin frankslin force-pushed the feature/issue-1003 branch 2 times, most recently from 2e2e77b to 52080f8 Compare January 13, 2026 21:11
- Switch all tests (C++ CLI, Python, Node) to consume `testcases.json` and drop `.in`/`.ans` dependencies; keep filegroup for the JSON.
- Prune TWPhrases sub-dictionary artifacts and align DictionaryTest to current generated dict set.
- Add rapidjson dep/path for CLI test, refresh_assets script fixes, and keep Bazel Python toolchain note.
- Rename and guard streams in CommandLineConvertTest; ensure input file opens and normalize CRLF.
- Fix node test promise handling to propagate errors correctly.
- Mark ConfigDictValidationTest as Bazel-only to skip CMake builds.
@BYVoid BYVoid merged commit 6ba9398 into BYVoid:master Jan 13, 2026
24 checks passed
@frankslin frankslin deleted the feature/issue-1003 branch January 13, 2026 21:51
frankslin added a commit to frankslin/OpenCC that referenced this pull request Jan 15, 2026
…id#1006)

* feature: add a new ConfigDictValidationTest.cpp to be executed in bazel

* Changeover to JSON-based testcases and clean dictionary outputs

- Switch all tests (C++ CLI, Python, Node) to consume `testcases.json` and drop `.in`/`.ans` dependencies; keep filegroup for the JSON.
- Prune TWPhrases sub-dictionary artifacts and align DictionaryTest to current generated dict set.
- Add rapidjson dep/path for CLI test, refresh_assets script fixes, and keep Bazel Python toolchain note.

* Normalize CommandLineConvertTest for CRLF comparisons on Windows

* Address review feedback for tests and Bazel-only validation

- Rename and guard streams in CommandLineConvertTest; ensure input file opens and normalize CRLF.
- Fix node test promise handling to propagate errors correctly.
- Mark ConfigDictValidationTest as Bazel-only to skip CMake builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants