From 94ee165fd84f9cad58fb75a272825b556cde61c7 Mon Sep 17 00:00:00 2001 From: Sander Ploegsma Date: Thu, 2 Nov 2023 09:00:56 +0100 Subject: [PATCH] Reimplement test case in DnD Character 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. --- exercises/dnd-character/canonical-data.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/exercises/dnd-character/canonical-data.json b/exercises/dnd-character/canonical-data.json index 6ac6f1f85a..df0b5be702 100644 --- a/exercises/dnd-character/canonical-data.json +++ b/exercises/dnd-character/canonical-data.json @@ -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" + } } ] }