Skip to content

Commit cdc67a4

Browse files
committed
amend
1 parent f87e7c4 commit cdc67a4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/testTaylor.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ using Test
22
using FinancialToolbox, TaylorSeries
33

44
#Test Parameters
5-
testToll = 1e-14;
6-
75
spot = 10.0;
86
K = 10;
97
r = 0.02;
@@ -12,7 +10,7 @@ sigma = 0.2;
1210
d = 0.01;
1311
spotDual=taylor_expand(identity,spot,order=22)
1412

15-
toll = 1e-6
13+
toll = 1e-4
1614

1715
#EuropeanCall Option
1816
PriceCall = blsprice(spotDual, K, r, T, sigma, d);
@@ -22,5 +20,5 @@ PriceCall = blsprice(spotDual, K, r, T, sigma, d);
2220

2321
dS0, dr, dsigma = set_variables("dS0 dr dsigma", order=4)
2422
PriceCall2 = blsprice(spot+dS0, K, r+dr, T, sigma+dsigma, d);
25-
@test(abs(1.1912013169995816-PriceCall2[0])<toll)
26-
@test(abs(0.5724340508103682-PriceCall2[1])<toll)
23+
@test(abs(1.1912013169995816-PriceCall2[0][1])<toll)
24+
@test(abs(0.5724340508103682-PriceCall2[1][1])<toll)

0 commit comments

Comments
 (0)