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

Skip comments in functional equivalence tests #2110

Merged

Conversation

kwokcb
Copy link
Contributor

@kwokcb kwokcb commented Nov 11, 2024

Change

  • Skip <comment> blocks when checking for functional equivalency as they should not affect the comparison.
  • Add "comment" category string for reuse.

Validation

  • Update equivalency test to add in comments for documents to compare.

Copy link
Contributor

@ld-kerley ld-kerley left a comment

Choose a reason for hiding this comment

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

Looks good to me - thanks @kwokcb

Copy link
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

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

This looks very promising, thanks @kwokcb, though I had a question about the name of the new string constant.

source/MaterialXCore/Types.cpp Outdated Show resolved Hide resolved
Copy link
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

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

This looks fine to me, thanks @kwokcb!

@jstone-lucasfilm jstone-lucasfilm changed the title Skip comment blocks for functional equivalency test Skip comments in functional equivalence tests Nov 14, 2024
@jstone-lucasfilm jstone-lucasfilm merged commit 65dbd39 into AcademySoftwareFoundation:main Nov 14, 2024
34 checks passed
@kwokcb kwokcb deleted the equiv_comments branch November 15, 2024 02:36
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