CrossLangIOTest is a framework designed to verify the consistency of function inputs and outputs across different programming languages. This project automates the generation of test cases and comparisons to ensure that functions produce equivalent results when implemented in multiple languages.
- Automatic Directory and File Creation: Easily set up the necessary directories and files for your test cases.
- Multi-language Support: Generate unit tests for functions in both Python and C++.
- Input/Output Configuration: Automatically generate configuration files listing input and output parameters.
- Result Comparison: Tools to compare the outputs from different language implementations to ensure consistency.
-
Define Function and Parameters: Edit the script to specify the function name, input parameters, and output return parameters.
-
Run the Script: I run it on vscode, please modify the top configs to generate unit test directory and test files.
-
Implement Unit Tests: Implement the generated unit test files in the respective languages.
-
Compare Results: Use the result comparator tool to ensure that the outputs are consistent across languages.