Skip to content

Latest commit

 

History

History
29 lines (28 loc) · 671 Bytes

README.md

File metadata and controls

29 lines (28 loc) · 671 Bytes

KotlinTest

Kotlin Test is a testing framework to ease out the assertions. It makes coding tests more readable and easy. For eg:

init 
{
  test("Valid mail: ($validMail) should return true and pass the test.") {
      val emailValidator = EmailValidator()
      emailValidator.isValidEmail(validMail) shouldBe true
  }
}



Screenshot:

init 
{
  test("Wrong mail: ($wrongMail) should fail the test and return false.") {
      val emailValidator = EmailValidator()
      emailValidator.isValidEmail(wrongMail) shouldBe false
    }
}



Screenshot: