This file contains hidden or 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
def emptyMap = [:] | |
assert emptyMap.size() == 0 | |
def notEmptyMap = ["person1":"john", "person2":"mus"] | |
assert notEmptyMap.size() == 2 | |
notEmptyMap.put "person3","test" //adding to existing one | |
assert notEmptyMap.size() == 3 | |
notEmptyMap["person4"] = "beth" | |
assert notEmptyMap.size() == 4 |