Skip to content

Commit 5a3d6a0

Browse files
BAEL-2766 Added more asserts to add items to map
1 parent cef5964 commit 5a3d6a0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎core-groovy/src/test/groovy/com/baeldung/map/MapTest.groovy‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ class MapTest{
3131
map.putAll(hobbyMap)
3232

3333
assertTrue(map == [name:"Jerry", age: 42, city: "New York", hobby:"Singing"])
34-
34+
assertTrue(hobbyMap.hobby == "Singing")
35+
assertTrue(hobbyMap[hobbyLiteral] == "Singing")
36+
3537
map.plus([1:20]) // returns new map
3638

3739
map << [2:30]
@@ -143,4 +145,4 @@ class MapTest{
143145

144146
}
145147

146-
}
148+
}

0 commit comments

Comments
 (0)