Skip to content

Fix yield term structure time error message#2593

Open
jewonj0620 wants to merge 4 commits into
lballabio:masterfrom
jewonj0620:fix/yield-term-structure-time-error-message
Open

Fix yield term structure time error message#2593
jewonj0620 wants to merge 4 commits into
lballabio:masterfrom
jewonj0620:fix/yield-term-structure-time-error-message

Conversation

@jewonj0620
Copy link
Copy Markdown
Contributor

Fix the typo when QL_REQUIRE is triggered in yieldtermstructure.cpp

compound = discount(t1, true)/discount(t2, true);
} else {
QL_REQUIRE(t2>t1, "t2 (" << t2 << ") < t1 (" << t2 << ")");
QL_REQUIRE(t2>t1, "t2 (" << t2 << ") < t1 (" << t1 << ")");
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

We should probably have <= in the message.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

agree. I will change today. forgot to see inequality here, thank you.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

comment applied please check

@coveralls
Copy link
Copy Markdown

coveralls commented May 19, 2026

Coverage Status

coverage: 74.637% (-0.001%) from 74.638% — jewonj0620:fix/yield-term-structure-time-error-message into lballabio:master

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