Skip to content

Commit 02209d7

Browse files
Reimplement test case in DnD Character (#2338)
This reimplements test case 2ca77b9b-c099-46c3-a02c-0d0f68ffa0fe in the DnD Character exercise to verify that *every* ability is calculated only once, instead of only the `strength` ability.
1 parent 7a654a3 commit 02209d7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

exercises/dnd-character/canonical-data.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,24 @@
197197
"property": "strength",
198198
"input": {},
199199
"expected": "strength == strength"
200+
},
201+
{
202+
"uuid": "dca2b2ec-f729-4551-84b9-078876bb4808",
203+
"reimplements": "2ca77b9b-c099-46c3-a02c-0d0f68ffa0fe",
204+
"description": "each ability is only calculated once",
205+
"comments": [
206+
"Expected values were changed to cover all character abilities"
207+
],
208+
"property": "character",
209+
"input": {},
210+
"expected": {
211+
"strength": "strength == strength",
212+
"dexterity": "dexterity == dexterity",
213+
"constitution": "constitution == constitution",
214+
"intelligence": "intelligence == intelligence",
215+
"wisdom": "wisdom == wisdom",
216+
"charisma": "charisma == charisma"
217+
}
200218
}
201219
]
202220
}

0 commit comments

Comments
 (0)