You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Explanation: The fraction -4/7 is a proper fraction because the absolute value of the numerator (4) is less than the denominator (7). The function should return true.
48
46
constnegativeFraction=isProperFraction(-4,7);
47
+
assertEquals(negativeFraction,true);
49
48
// ====> complete with your assertion
50
49
51
50
// Equal Numerator and Denominator check:
52
51
// Input: numerator = 3, denominator = 3
53
52
// target output: false
54
53
// Explanation: The fraction 3/3 is not a proper fraction because the numerator is equal to the denominator. The function should return false.
// The line below allows us to load the getCardValue function into tests in other files.
@@ -28,7 +38,9 @@ function assertEquals(actualOutput, targetOutput) {
28
38
}
29
39
// Acceptance criteria:
30
40
31
-
// Given a card string in the format "A♠" (representing a card in blackjack - the last character will always be an emoji for a suit, and all characters before will be a number 2-10, or one letter of J, Q, K, A),
41
+
// Given a card string in the format "A♠" (representing a card in
42
+
// blackjack - the last character will always be an emoji for a suit,
43
+
// and all characters before will be a number 2-10, or one letter of J, Q, K, A),
32
44
// When the function getCardValue is called with this card string as input,
0 commit comments