Skip to content

Commit 87be46e

Browse files
committed
Cosmetic changes to a few test messages
1 parent 75cbaf6 commit 87be46e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

test-suite/americanoption.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ void AmericanOptionTest::testTodayIsDividendDate() {
934934

935935

936936
void AmericanOptionTest::testCallPutParity() {
937-
BOOST_TEST_MESSAGE("Testing Call/Put parity for American options...");
937+
BOOST_TEST_MESSAGE("Testing call/put parity for American options...");
938938

939939
// R.L. McDonald, M.D. Schroder: A parity result for American option
940940

@@ -1014,7 +1014,7 @@ void AmericanOptionTest::testCallPutParity() {
10141014
const Real tol = 0.001;
10151015

10161016
if (diff > tol) {
1017-
BOOST_FAIL("failed to reproduce American Call/Put parity"
1017+
BOOST_FAIL("failed to reproduce American call/put parity"
10181018
<< "\n Put NPV : " << putNpv
10191019
<< "\n Call NPV : " << callNpv
10201020
<< "\n difference: " << diff
@@ -1140,7 +1140,7 @@ void AmericanOptionTest::testQdPlusBoundaryConvergence() {
11401140
}
11411141

11421142
void AmericanOptionTest::testQdAmericanEngines() {
1143-
BOOST_TEST_MESSAGE("Testing QD+ American Option pricing...");
1143+
BOOST_TEST_MESSAGE("Testing QD+ American option pricing...");
11441144

11451145
SavedSettings backup;
11461146

@@ -1388,7 +1388,7 @@ void AmericanOptionTest::testQdAmericanEngines() {
13881388

13891389
void AmericanOptionTest::testQdFpIterationScheme() {
13901390
BOOST_TEST_MESSAGE("Testing Legendre and tanh-sinh iteration "
1391-
"scheme for QD+ Fixed Point American engine...");
1391+
"scheme for QD+ fixed-point American engine...");
13921392

13931393
const Real tol = 1e-8;
13941394
const Size l=32, m=6, n=18, p=36;
@@ -1720,7 +1720,7 @@ void AmericanOptionTest::testBulkQdFpAmericanEngine() {
17201720

17211721
void AmericanOptionTest::testQdEngineWithLobattoIntegral() {
17221722
BOOST_TEST_MESSAGE("Testing Andersen, Lake and Offengenden "
1723-
"with high precision Gauss-Lobatto-Integration...");
1723+
"with high precision Gauss-Lobatto integration...");
17241724

17251725
SavedSettings backup;
17261726

test-suite/fdheston.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -981,8 +981,8 @@ void FdHestonTest::testSpuriousOscillations() {
981981

982982

983983
void FdHestonTest::testAmericanCallPutParity() {
984-
BOOST_TEST_MESSAGE("Testing Call/Put parity for American option "
985-
"under the Heston model...");
984+
BOOST_TEST_MESSAGE("Testing call/put parity for American options "
985+
"under the Heston model...");
986986

987987
// A. Battauz, M. De Donno,m A. Sbuelz:
988988
// The put-call symmetry for American options in
@@ -1081,7 +1081,7 @@ void FdHestonTest::testAmericanCallPutParity() {
10811081
const Real tol = 0.025;
10821082

10831083
if (diff > tol) {
1084-
BOOST_FAIL("failed to reproduce American Call/Put parity"
1084+
BOOST_FAIL("failed to reproduce American call/put parity"
10851085
<< "\n Put NPV : " << putNpv
10861086
<< "\n Call NPV : " << callNpv
10871087
<< "\n difference: " << diff

0 commit comments

Comments
 (0)