Skip to content

Conversation

@SFJohnson24
Copy link
Collaborator

@SFJohnson24 SFJohnson24 commented Oct 30, 2025

this PR modifies the custom_str_conversion called by type_insensitive to remove trailing 0's from both str and float types.
here are the jsons for FB3102, positive 2 (with updated rule)
Datasets.json
Rule_underscores.json
CORE-Report-2025-10-30T13-27-21.xlsx

this positive data now correctly returns 0 issues instead of the two it did before when comparing 200.00 and 200 as well as -44 and -44.0.

@SFJohnson24 SFJohnson24 self-assigned this Oct 30, 2025
@SFJohnson24 SFJohnson24 marked this pull request as ready for review October 30, 2025 17:41
Copy link
Collaborator

@RamilCDISC RamilCDISC left a comment

Choose a reason for hiding this comment

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

The PR adds functionality to remove trialing zeros to custom_str_conversion. The PR was validated by:

  1. Reviewing the PR for unwanted code or comments.

  2. Reviewing the updated logic in accordance with AC.

  3. Validating all unit and regression testing pass.

  4. Validating all related testing and documentation is updated.

  5. Running manual validations using dev editor with positive datasets.

  6. Running manual validations with negative datasets.

  7. Covering edge cases where:

    • Both values are null
    • One value is string and other is int
    • Comparison between values such as 149.85 and 150 without rounding.
    • One value is non number string and other is empty.

@RamilCDISC RamilCDISC merged commit 014485f into main Nov 3, 2025
11 checks passed
@RamilCDISC RamilCDISC deleted the type branch November 3, 2025 22:40
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