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

DEV-1531: verify blank n_enum isn't an mpm #336

Open
wants to merge 1 commit into
base: mariadb
Choose a base branch
from

Conversation

aelkiss
Copy link
Member

@aelkiss aelkiss commented Feb 7, 2025

Ensure that regardless of whether we get a blank or nil n_enum, CalculateFormat says the item is not a multi-part monograph.

@aelkiss aelkiss requested a review from mwarin February 7, 2025 21:19
@aelkiss aelkiss force-pushed the DEV-1531-calculate-format-mpm branch from ea21230 to e54b561 Compare February 7, 2025 21:21
@@ -34,6 +34,24 @@
).to eq("spm")
end

it "is NOT an MPM with null n_enum" do
htitem = double(:htitem, ht_bib_key: '12345', bib_fmt: 'BK', n_enum: nil)
Copy link
Member Author

Choose a reason for hiding this comment

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

Rather than trying to get the htitem/cluster to do what we wanted, basically we say -- what if htitem behaves like this? Then CalculateFormat should behave the way we want.

@aelkiss aelkiss marked this pull request as ready for review February 7, 2025 21:22
Ensure that regardless of whether we get a blank or nil n_enum,
CalculateFormat says the item is not a multi-part monograph.
@aelkiss aelkiss force-pushed the DEV-1531-calculate-format-mpm branch from e54b561 to 9b14738 Compare February 7, 2025 21: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.

1 participant