Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String containing vars number expanded by include is interpreted as a numerical value #660

Closed
wants to merge 3 commits into from

Conversation

k2tzumi
Copy link
Collaborator

@k2tzumi k2tzumi commented Oct 28, 2023

Created a verification test that fails. It fails as follows

        Condition:
          vars.a == "0100000001"
          && vars.b == "16011"
          │
          ├── vars.a => 16777216
          ├── "0100000001" => "0100000001"
          ├── vars.b => 16010
          └── "16011" => "16011"

@k2tzumi k2tzumi changed the title Problem with strings containing numerical values being interpreted as numerical values when included in vars String containing vars number expanded by include is interpreted as a numerical value Oct 28, 2023
@k2tzumi
Copy link
Collaborator Author

k2tzumi commented Oct 28, 2023

Seems to be a problem when simply deploying vars.

  Condition:
    vars.a == "0100000001"
    && vars.b == "16011"
    │
    ├── vars.a => 16777217
    ├── "0100000001" => "0100000001"
    ├── vars.b => 16011
    └── "16011" => "16011"

Comment on lines +13 to +14
a: '010000000{{ vars.int }}'
b: '1601{{ vars.int }}'
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 following will be correctly recognized as characters

Suggested change
a: '010000000{{ vars.int }}'
b: '1601{{ vars.int }}'
a: '"010000000{{ vars.int }}"'
b: '"1601{{ vars.int }}"'

@k2tzumi
Copy link
Collaborator Author

k2tzumi commented Oct 28, 2023

It was a discrepancy in expectations due to lack of understanding of the specifications, so I'm closing it.

@k2tzumi k2tzumi closed this Oct 28, 2023
@k2tzumi k2tzumi deleted the fail-test-include-loop branch October 28, 2023 03:59
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.

1 participant