Skip to content

Commit

Permalink
Merge 52c7786 into 5994f17
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 21, 2020
2 parents 5994f17 + 52c7786 commit 5c21d05
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
9 changes: 4 additions & 5 deletions test-suite/capfloor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ namespace capfloor_test {
}

ext::shared_ptr<CapFloor> makeCapFloor(CapFloor::Type type,
const Leg& leg,
Rate strike,
Volatility volatility,
bool isLogNormal = true) {
const Leg& leg,
Rate strike,
Volatility volatility,
bool isLogNormal = true) const {
ext::shared_ptr<CapFloor> result;
switch (type) {
case CapFloor::Cap:
Expand All @@ -129,7 +129,6 @@ namespace capfloor_test {
}
return result;
}

};

bool checkAbsError(Real x1, Real x2, Real tolerance){
Expand Down
8 changes: 4 additions & 4 deletions test-suite/capflooredcoupon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ namespace capfloored_coupon_test {
}

ext::shared_ptr<CapFloor> makeCapFloor(CapFloor::Type type,
const Leg& leg,
Rate capStrike,
Rate floorStrike,
Volatility volatility) {
const Leg& leg,
Rate capStrike,
Rate floorStrike,
Volatility volatility) const {
ext::shared_ptr<CapFloor> result;
switch (type) {
case CapFloor::Cap:
Expand Down
3 changes: 1 addition & 2 deletions test-suite/inflationcapfloor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ namespace inflation_capfloor_test {
const Leg& leg,
Rate strike,
Volatility volatility,
Size which) {
Size which) const {
ext::shared_ptr<YoYInflationCapFloor> result;
switch (type) {
case YoYInflationCapFloor::Cap:
Expand All @@ -269,7 +269,6 @@ namespace inflation_capfloor_test {
result->setPricingEngine(makeEngine(volatility, which));
return result;
}

};

}
Expand Down
9 changes: 4 additions & 5 deletions test-suite/inflationcapflooredcoupon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ namespace inflation_capfloored_coupon_test {


ext::shared_ptr<YoYInflationCapFloor> makeYoYCapFloor(YoYInflationCapFloor::Type type,
const Leg& leg,
Rate strike,
Volatility volatility,
Size which) {
const Leg& leg,
Rate strike,
Volatility volatility,
Size which) const {
ext::shared_ptr<YoYInflationCapFloor> result;
switch (type) {
case YoYInflationCapFloor::Cap:
Expand All @@ -371,7 +371,6 @@ namespace inflation_capfloored_coupon_test {
result->setPricingEngine(makeEngine(volatility, which));
return result;
}

};

}
Expand Down

0 comments on commit 5c21d05

Please sign in to comment.