Skip to content

Commit

Permalink
fix: upper case to solved collision characters
Browse files Browse the repository at this point in the history
  • Loading branch information
AyadLaouissi committed May 3, 2024
1 parent 99f80f1 commit d64708d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/packages/game_domain/lib/src/models/word.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Word extends Equatable {
for (var i = 0; i < answer.length; i++) {
final character = answer[i];
if (character != ' ') {
map[i] = character;
map[i] = character.toUpperCase();
}
}

Expand Down
6 changes: 3 additions & 3 deletions api/packages/game_domain/test/src/models/word_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ void main() {
word.solvedCharacters,
equals(
{
1: 'a',
2: 'p',
4: 'y',
1: 'A',
2: 'P',
4: 'Y',
},
),
);
Expand Down

0 comments on commit d64708d

Please sign in to comment.