Skip to content

Commit 858b503

Browse files
committed
test: added explicit assertion for getCardValue('2♠') returning 2
1 parent a62c492 commit 858b503

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ assertEquals(getCardValue("9♠"), 9);
7070
const twoofHearts = getCardValue("2♥");
7171
assertEquals(twoofHearts, 2);
7272

73+
// Added: test for 2♠, returns 2
74+
const twoofSpades = getCardValue("2♠");
75+
assertEquals(twoofSpades, 2);
76+
7377
const fiveofDiamonds = getCardValue("5♦");
7478
assertEquals(fiveofDiamonds, 5);
7579

0 commit comments

Comments
 (0)