package Ġcom . sk sam uel . kot est . matchers . string Ċ Ċ import Ġio . kot est . assertions . throw ables . should Throw Ċ import Ġio . kot est . core . spec . style . Fun Spec Ċ import Ġio . kot est . matchers . shouldBe Ċ import Ġio . kot est . matchers . string . should Have Digest Ċ import Ġio . kot est . matchers . string . should Not Have Digest Ċ Ċ class ĠDigest Matchers Test Ġ: ĠFun Spec ({ ĊĊĠ Ġcontext (" digest Ġmatch ers ") Ġ{ ĊĠĠĠ Ġtest (" string Ġdigest Ġshould Ġmatch ") Ġ{ ĊĊĠĠĠĠĠ Ġ" cool Ġfor Ġcats ". should Have Digest (" md 5 ", Ġ" cf 6 b 4 f 4 9 7 3 0 7 7 da 7 3 6 b 5 0 8 5 5 f 6 9 9 d 0 0 5 ") ĊĠĠĠĠĠ Ġ" cool Ġfor Ġcats ". should Have Digest (" SHA - 2 5 6 ", Ġ" b 3 de 7 9 f 0 7 d 2 1 4 0 5 0 3 2 5 a 2 6 0 eeb 5 1 2 2 5 5 2 4 3 bfd abc 1 d 1 6 9 5 4 1 9 ae 4 b 5 3 0 a 2 2 9 bc 4 ") ĊĊĠĠĠĠĠ Ġ" cool Ġfor Ġcats ". should Not Have Digest (" md 5 ", Ġ" qw erty ") ĊĠĠĠĠĠ Ġ" cool Ġfor Ġcats ". should Not Have Digest (" SHA - 2 5 6 ", Ġ" qw erty ") ĊĊĠĠĠĠĠ Ġ"". should Have Digest (" md 5 ", Ġ" d 4 1 d 8 cd 9 8 f 0 0 b 2 0 4 e 9 8 0 0 9 9 8 ecf 8 4 2 7 e ") ĊĊĠĠĠ Ġ} ĊĠĠĠ Ġtest (" return Ġcorrect Ġerror Ġmessage Ġon Ġfailure ") Ġ{ ĊĊĠĠĠĠĠ Ġshould Throw < AssertionError > Ġ{ ĊĠĠĠĠĠĠĠ Ġ" cool Ġfor Ġcats ". should Have Digest (" md 5 ", Ġ" qw erty ") ĊĠĠĠĠĠ Ġ}. message ĠshouldBe Ġ"\" cool Ġfor Ġcats \" Ġshould Ġhave Ġmd 5 Ġdigest Ġ\" qw erty \" Ġbut Ġwas Ġ\" cf 6 b 4 f 4 9 7 3 0 7 7 da 7 3 6 b 5 0 8 5 5 f 6 9 9 d 0 0 5 \"" ĊĊĠĠĠĠĠ Ġshould Throw < AssertionError > Ġ{ ĊĠĠĠĠĠĠĠ Ġ" cool Ġfor Ġcats ". should Not Have Digest (" md 5 ", Ġ" cf 6 b 4 f 4 9 7 3 0 7 7 da 7 3 6 b 5 0 8 5 5 f 6 9 9 d 0 0 5 ") ĊĠĠĠĠĠ Ġ}. message ĠshouldBe Ġ"\" cool Ġfor Ġcats \" Ġshould Ġnot Ġhave Ġmd 5 Ġdigest Ġ\" cf 6 b 4 f 4 9 7 3 0 7 7 da 7 3 6 b 5 0 8 5 5 f 6 9 9 d 0 0 5 \"" ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ Ċ }) Ċ