Skip to content

Conversation

@HolQue
Copy link
Collaborator

@HolQue HolQue commented Aug 6, 2025

  • Tests are commented out
  • Expected results not yet defined

Reason: Feature currently under construction

* Tests are commented out
* Expected results not yet defined
Reason: Feature currently under construction
@HolQue HolQue requested review from Copilot and namsonx August 6, 2025 16:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive test coverage for Python inline code in the JSON Preprocessor (JPP) by introducing new BADCASE tests for the INLINE_CODE section. The tests are currently commented out as the feature is still under construction.

  • Adds 42 new test cases (JPP_2150-JPP_2191) covering various edge cases and error conditions for Python inline code
  • Updates code generation tools to include better bracket handling and inline code test generation
  • Minor updates to existing test files and version information

Reviewed Changes

Copilot reviewed 48 out of 48 changed files in this pull request and generated 1 comment.

File Description
test/testtools/GenSnippetsJPP.py Major update adding inline code test generation, improved bracket handling methods, and version bump
test/testconfig/TestConfig.py Adds 42 new commented-out test case definitions for inline code BADCASE scenarios
test/testfiles/jpp-test_config_*.jsonp 42 new test files containing various inline code error scenarios
test/component_test.py Minor version update from 0.62.0 to 0.63.0
Comments suppressed due to low confidence (2)

test/testtools/GenSnippetsJPP.py:3544

  • The closing angle bracket is missing in the Python inline code. It should be "<<("A" if True else "B")>>" : 1 to properly close the inline code block.
    "<<(\"A\" if True else \"B\">>" : 1

test/testtools/GenSnippetsJPP.py:4460

  • There's a spelling error in the comment. "BADGASE" should be "BADCASE".
            for sPlaceholder in listPlaceholders:

listCodeSnippets.append("""{
// "JPP_2167"
// Python inline code as dictionary key at left hand side of the colon
"A" : {"B" : 1, "C" . 2},
Copy link

Copilot AI Aug 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a syntax error in the JSON structure. The colon ":" should be used instead of a dot "." to separate the key-value pair. It should be "C" : 2.

Suggested change
"A" : {"B" : 1, "C" . 2},
"A" : {"B" : 1, "C" : 2},

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The errors are part of BADCASE tests and are therefore intentional.

@namsonx namsonx merged commit 6f1a2f8 into namsonx/task/stabi_branch Aug 8, 2025
1 check passed
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.

3 participants