Skip to content

Commit bfdac1c

Browse files
Bryan ChapmanBryan Chapman
authored andcommitted
Add test case for default map values
1 parent a9cc4b6 commit bfdac1c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/scala/exercises/stdlib/MapSpec.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ class MapsSpec extends Spec with Checkers {
7272
)
7373
}
7474

75+
def `map default value access` = {
76+
check(
77+
Test.testSuccess(
78+
Maps.defaultValuesMayBeProvidedMaps _,
79+
"missing data" :: "missing data" :: HNil
80+
)
81+
)
82+
}
83+
7584
def `map element removal` = {
7685
check(
7786
Test.testSuccess(

0 commit comments

Comments
 (0)