Created
December 14, 2017 20:19
-
-
Save AlexeySoshin/899f5b3a9d7e4c62e8ec8faf0c3987b0 to your computer and use it in GitHub Desktop.
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
@org.testng.annotations.Test | |
fun testDecorator() { | |
val map = HappyMap<String, String>() | |
val result = captureOutput { | |
map["A"] = "B" | |
map["B"] = "C" | |
map["A"] = "C" | |
map.remove("A") | |
map["A"] = "C" | |
} | |
assertEquals(mapOf("A" to "C", "B" to "C"), map.map) | |
assertEquals(listOf("Yay! A", "Yay! B", "Yay! A"), (result)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment