package Ġorg . did comm x . did comm . utils Ċ Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġkotlin . test . assertEquals Ċ import Ġkotlin . test . assertFalse Ċ import Ġkotlin . test . assertTrue Ċ Ċ class ĠD ID UtilsTest Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcalculate Ap v () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ"_ Xz ta 7 i Z sf JX b _- 2 Ca L 6 LC z Z J OK mf Yz Pn GZ 5 - 5 2 Rt K 0 ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcalculate AP V ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠlistOf (" key 1 ", Ġ" key 2 ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ). toString () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcalculate Ap v Order In dependent () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertEquals ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcalculate AP V ( listOf (" key 1 ", Ġ" key 2 ")), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcalculate AP V ( listOf (" key 2 ", Ġ" key 1 ")) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġis Did () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertTrue ( is DID (" did : example : alice ")) ĊĠĠĠĠĠĠĠ ĠassertTrue ( is DID (" did : example : alice : alice 2 ")) ĊĠĠĠĠĠĠĠ ĠassertTrue ( is DID (" did : example : alice # key - 1 ")) ĊĠĠĠĠĠĠĠ ĠassertTrue ( is DID (" did : example : alice : alice 2 # key - 1 ")) ĊĊĠĠĠĠĠĠĠ ĠassertFalse ( is DID (" did : example ")) ĊĠĠĠĠĠĠĠ ĠassertFalse ( is DID (" did ")) ĊĠĠĠĠĠĠĠ ĠassertFalse ( is DID (" did : example # key - 1 ")) ĊĠĠĠ Ġ} Ċ } Ċ