It's needed because 'assertEquals' has 'OnlyInputType' annotation on type parameter, and type of 're.exec(string)!!' is 'Array<String?>', while 'arrayOf("A5D5", "A5", "D5")' is 'Array<String>'