Given the dates <start date> and <end date> When the ActualActual(ISDA) day count convention is used Then the year fraction should be <day count fraction>
When the ActualActual(ISDA) day count convention is used
SUCCESS
002ms
Then the year fraction should be 0.5041096
FAILURE
023ms
 
java.lang.AssertionError: Expecting actual: 0.5041096 to be close to: 0.5037353095291563 by less than 1.0E-5 but difference was 3.742904708437E-4. (a difference of exactly 1.0E-5 being considered valid)
frm.steps.date_time.dcc.DayCountConventionStepDefinitions.yearFraction(DayCountConventionStepDefinitions.java:33) ✽.the year fraction should be 0.5041096(file:///C:/Arc/value/src/test/resources/features/date_time/year_fractions/actual_atual_isda.feature:30)
When the ActualActual(ISDA) day count convention is used
SUCCESS
001ms
Then the year fraction should be 0.5041096
FAILURE
019ms
 
java.lang.AssertionError: Expecting actual: 0.5041096 to be close to: 0.503106519949098 by less than 1.0E-5 but difference was 0.001003080050902. (a difference of exactly 1.0E-5 being considered valid)
frm.steps.date_time.dcc.DayCountConventionStepDefinitions.yearFraction(DayCountConventionStepDefinitions.java:33) ✽.the year fraction should be 0.5041096(file:///C:/Arc/value/src/test/resources/features/date_time/year_fractions/actual_atual_isda.feature:30)