Created
July 18, 2021 10:08
-
-
Save sergio-sastre/890090a48d72830019e5d95ed3f62c67 to your computer and use it in GitHub Desktop.
Multiplying the quality of your Unit Tests (Part2) with PBT - When PBT is not enough alone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun String?.reversed() : String? = this //forgot to reverse it? | |
@Label("Reversing a reversed String returns the original") | |
@Property | |
fun reverseStringTest(@ForAll originalString: String?) { | |
assertTrue( | |
originalString?.reversed()?.reversed() == originalString | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment