Skip to content

Compare BeamlineConfiguration using derived Eq/PartialEq#91

Merged
tpoliaw merged 1 commit into
mainfrom
compare_configs
Feb 12, 2025
Merged

Compare BeamlineConfiguration using derived Eq/PartialEq#91
tpoliaw merged 1 commit into
mainfrom
compare_configs

Conversation

@tpoliaw

@tpoliaw tpoliaw commented Feb 11, 2025

Copy link
Copy Markdown
Collaborator

Instead of comparing each field individually. Adds a bit of boilerplate
in terms of derives etc, but reduces need for duplicated blocks of
testing code when there are multiple tests comparing configurations.

Instead of comparing each field individually. Adds a bit of boilerplate
in terms of derives etc, but reduces need for duplicated blocks of
testing code when there are multiple tests comparing configurations.

@abbiemery abbiemery left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like this, it looks much nicer now and cuts down lots of repeated code.

@tpoliaw tpoliaw merged commit a7a28cc into main Feb 12, 2025
@tpoliaw tpoliaw deleted the compare_configs branch February 12, 2025 11:15
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.

2 participants