Skip to content

Commit

Permalink
Reimplement test case in DnD Character (#2338)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sanderploegsma authored Nov 17, 2023
1 parent 7a654a3 commit 02209d7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions exercises/dnd-character/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,24 @@
"property": "strength",
"input": {},
"expected": "strength == strength"
},
{
"uuid": "dca2b2ec-f729-4551-84b9-078876bb4808",
"reimplements": "2ca77b9b-c099-46c3-a02c-0d0f68ffa0fe",
"description": "each ability is only calculated once",
"comments": [
"Expected values were changed to cover all character abilities"
],
"property": "character",
"input": {},
"expected": {
"strength": "strength == strength",
"dexterity": "dexterity == dexterity",
"constitution": "constitution == constitution",
"intelligence": "intelligence == intelligence",
"wisdom": "wisdom == wisdom",
"charisma": "charisma == charisma"
}
}
]
}

0 comments on commit 02209d7

Please sign in to comment.