Skip to content

Commit 8acb203

Browse files
committed
test: Verify normalized string format of duration
Add another test case to verify that a years-months-duration returns a normalized value.
1 parent d87a543 commit 8acb203

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/scala/org/camunda/feel/api/StringRepresentationTypeTest.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ class StringRepresentationTypeTest extends AnyFlatSpec with Matchers {
127127

128128
ValYearMonthDuration(Period.parse("P25M")).toString should be("P2Y1M")
129129
ValYearMonthDuration(Period.parse("P35M")).toString should be("P2Y11M")
130+
131+
ValYearMonthDuration(Period.parse("P2Y13M")).toString should be("P3Y1M")
130132
}
131133

132134
"A days-time-duration" should "return 'P1DT2H3M4S' " in {

0 commit comments

Comments
 (0)