Skip to content

Commit

Permalink
DND Character: let tests import their own needs (#290)
Browse files Browse the repository at this point in the history
[no important files changed]
  • Loading branch information
glennj authored Oct 4, 2024
1 parent b8f5a3e commit 2995dcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exercises/practice/dnd-character/source/dnd_character.d
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ unittest

// Random character is valid
{
import std.range : iota;
import std.algorithm : canFind;

DndCharacter character = new DndCharacter();
assert(iota(3, 19).canFind(character.strength));
assert(iota(3, 19).canFind(character.dexterity));
Expand Down

0 comments on commit 2995dcd

Please sign in to comment.