Skip to content

Commit 56126e2

Browse files
authored
CLN: CI (#211) (#1126)
Co-authored-by: JHM Darbyshire (M1) <[email protected]>
1 parent 21ed809 commit 56126e2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

python/tests/instruments/test_instruments_legacy.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4475,6 +4475,13 @@ def test_3c_ndxcs_npv(self, curve, curve2) -> None:
44754475
rate = ndxcs.rate(fx=fxf)
44764476
df = ndxcs.cashflows(fx=fxf)
44774477
assert abs(npv) < 1e-9
4478+
ndxcs.float_spread = float(rate) + 0.1
4479+
assert abs(ndxcs.npv(fx=fxf) + ndxcs.analytic_delta(fx=fxf, leg=1) * 0.1) < 1e-8
4480+
for a, b in zip(
4481+
df["FX Fix Date"],
4482+
[dt(2022, 2, 1), dt(2022, 3, 3), dt(2022, 4, 3), dt(2022, 5, 3), dt(2022, 5, 1)] * 2,
4483+
):
4484+
assert a == b
44784485

44794486

44804487
class TestFixedFloatXCS:

0 commit comments

Comments
 (0)