Skip to content

Commit ab8ad7a

Browse files
dnd-character: omit calculated_once test (#111)
resolves #105
1 parent 1aa5bbb commit ab8ad7a

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

exercises/practice/dnd-character/.meta/tests.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ include = false
7070
[dca2b2ec-f729-4551-84b9-078876bb4808]
7171
description = "each ability is only calculated once"
7272
reimplements = "2ca77b9b-c099-46c3-a02c-0d0f68ffa0fe"
73+
include = false

exercises/practice/dnd-character/TestCases.pas

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ DndCharacterTest = class(TTestCase)
2727
procedure ability_modifier_for_score_18_is_plus_4;
2828
procedure random_ability_is_within_range;
2929
procedure random_character_is_valid;
30-
procedure each_ability_is_only_calculated_once;
3130
end;
3231

3332
implementation
@@ -149,15 +148,6 @@ procedure DndCharacterTest.random_character_is_valid;
149148
TapAssertTrue(Self, 'random character is valid', true, (FCharacter.strength >= 3) and (FCharacter.strength <= 18) and (FCharacter.dexterity >= 3) and (FCharacter.dexterity <= 18) and (FCharacter.constitution >= 3) and (FCharacter.constitution <= 18) and (FCharacter.intelligence >= 3) and (FCharacter.intelligence <= 18) and (FCharacter.wisdom >= 3) and (FCharacter.wisdom <= 18) and (FCharacter.charisma >= 3) and (FCharacter.charisma <= 18) and (FCharacter.hitpoints = 10 + DndCharacter.modifier(FCharacter.constitution)));
150149
end;
151150

152-
// dca2b2ec-f729-4551-84b9-078876bb4808
153-
procedure DndCharacterTest.each_ability_is_only_calculated_once;
154-
var
155-
LCharacter : TCharacter;
156-
begin
157-
LCharacter := DndCharacter.character;
158-
TapAssertTrue(Self, 'each ability is only calculated once', true, (LCharacter.strength = FCharacter.strength) and (LCharacter.dexterity = FCharacter.dexterity) and (LCharacter.constitution = FCharacter.constitution) and (LCharacter.intelligence = FCharacter.intelligence) and (LCharacter.wisdom = FCharacter.wisdom) and (LCharacter.charisma = FCharacter.charisma) );
159-
end;
160-
161151
initialization
162152
RegisterTest(DndCharacterTest);
163153

0 commit comments

Comments
 (0)