Skip to content

Commit

Permalink
test: Verify normalized string format of duration
Browse files Browse the repository at this point in the history
Add another test case to verify that a years-months-duration returns a normalized value.
  • Loading branch information
saig0 committed Jan 21, 2025
1 parent d87a543 commit 8acb203
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ class StringRepresentationTypeTest extends AnyFlatSpec with Matchers {

ValYearMonthDuration(Period.parse("P25M")).toString should be("P2Y1M")
ValYearMonthDuration(Period.parse("P35M")).toString should be("P2Y11M")

ValYearMonthDuration(Period.parse("P2Y13M")).toString should be("P3Y1M")
}

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

0 comments on commit 8acb203

Please sign in to comment.