// ĠAuthor : ĠKon rad ĠJ am ro z ik , Ġgithub . com / kon rad - jam ro z ik Ċ Ċ package Ġcom . kon rad jam ro z ik Ċ Ċ import Ġorg . hamcrest . Matcher Assert . assertThat Ċ import Ġorg . hamcrest . Matchers .` is ` Ċ import Ġorg . junit . Test Ċ import Ġkotlin . test . assert Fails With Ċ Ċ internal Ġclass ĠFirst Match First Group Test Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` matches `() Ġ{ ĊĊĠĠĠ Ġassert Fails With ( Exception :: class ) Ġ{ ĠFirst Match First Group (" target ", Ġ" target ")} ĊĠĠĠ ĠassertThat ( First Match First Group (" target ", Ġ"( target ) "). value , Ġ` is ` (" target ")) ĊĠĠĠ ĠassertThat ( First Match First Group (" target ", Ġ" ()", Ġ"( target )", Ġ" target "). value , Ġ` is ` (" target ")) ĊĠĠĠ ĠassertThat ( First Match First Group (" target ", Ġ" target ", Ġ"( target )", Ġ" () "). value , Ġ` is ` (" target ")) ĊĠĠĠĠĊĠĠĠ ĠassertThat ( First Match First Group (" label =' xyz '", Ġ" label =' (.* )' "). value , Ġ` is ` (" xyz ")) ĊĠĠĠ Ġassert Fails With ( Exception :: class ) Ġ{ ĠFirst Match First Group (" label =' '", Ġ" label =' (.* )' ")} ĊĠ Ġ} Ċ } ĊĠĠĊ