Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues require changes.
No open issues 🎉
What changed in this PR
Cleans up libCellML’s generator tests for #1548 without changing production functionality.
Changes:
- Moves the logical-NOT test into
generator.cpp. - Replaces fragment checks with complete C header, C source, and Python output comparisons.
- Shares unary-minus test setup and adds expected-output fixtures.
| File | Description |
|---|---|
| tests/resources/generator/unary_plus/model.py | Adds expected unary-plus Python output. |
| tests/resources/generator/unary_plus/model.h | Adds expected unary-plus C header. |
| tests/resources/generator/unary_plus/model.c | Adds expected unary-plus C output. |
| tests/resources/generator/unary_minus/example_07.py | Adds example 07 Python output. |
| tests/resources/generator/unary_minus/example_07.h | Adds example 07 C header. |
| tests/resources/generator/unary_minus/example_07.c | Adds example 07 C output. |
| tests/resources/generator/unary_minus/example_06.py | Adds example 06 Python output. |
| tests/resources/generator/unary_minus/example_06.h | Adds example 06 C header. |
| tests/resources/generator/unary_minus/example_06.c | Adds example 06 C output. |
| tests/resources/generator/unary_minus/example_05.py | Adds example 05 Python output. |
| tests/resources/generator/unary_minus/example_05.h | Adds example 05 C header. |
| tests/resources/generator/unary_minus/example_05.c | Adds example 05 C output. |
| tests/resources/generator/unary_minus/example_04.py | Adds example 04 Python output. |
| tests/resources/generator/unary_minus/example_04.h | Adds example 04 C header. |
| tests/resources/generator/unary_minus/example_04.c | Adds example 04 C output. |
| tests/resources/generator/unary_minus/example_03.py | Adds example 03 Python output. |
| tests/resources/generator/unary_minus/example_03.h | Adds example 03 C header. |
| tests/resources/generator/unary_minus/example_03.c | Adds example 03 C output. |
| tests/resources/generator/unary_minus/example_02.py | Adds example 02 Python output. |
| tests/resources/generator/unary_minus/example_02.h | Adds example 02 C header. |
| tests/resources/generator/unary_minus/example_02.c | Adds example 02 C output. |
| tests/resources/generator/unary_minus/example_01.py | Adds example 01 Python output. |
| tests/resources/generator/unary_minus/example_01.h | Adds example 01 C header. |
| tests/resources/generator/unary_minus/example_01.c | Adds example 01 C output. |
| tests/resources/generator/cellml_not/model.py | Adds expected logical-NOT Python output. |
| tests/resources/generator/cellml_not/model.h | Adds expected logical-NOT C header. |
| tests/resources/generator/cellml_not/model.cellml | Supplies the logical-NOT test model. |
| tests/resources/generator/cellml_not/model.c | Adds expected logical-NOT C output. |
| tests/generator/tests.cmake | Removes the deleted test source. |
| tests/generator/generatorunary.cpp | Shares setup and compares complete generated files. |
| tests/generator/generatornot.cpp | Deletes the standalone logical-NOT test file. |
| tests/generator/generator.cpp | Incorporates logical-NOT testing with full-file comparisons. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1548.