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

Add String to primitive list #262

Merged
merged 1 commit into from
Sep 22, 2024
Merged

Add String to primitive list #262

merged 1 commit into from
Sep 22, 2024

Conversation

jas14
Copy link
Collaborator

@jas14 jas14 commented Sep 22, 2024

String is considered a primitive for the purposes of inspection, but was excluded from the SuperDiff.primitive? helper in order to support custom multiline and single-line strings in that area of the codebase.

A simpler way of achieving the same result is to consider String to be a primitive everywhere, and give the custom string equality matchers higher precedence than the primitive equality matcher.

@jas14 jas14 enabled auto-merge (squash) September 22, 2024 21:40
@jas14 jas14 merged commit f864fb5 into main Sep 22, 2024
31 checks passed
@jas14 jas14 deleted the string-primitive branch September 22, 2024 21:43
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