From 988d794f1cf3563c568c217e7b1fe95548dacf2e Mon Sep 17 00:00:00 2001 From: Arturs Bondars Date: Tue, 11 Jul 2023 20:40:52 +0000 Subject: [PATCH 1/2] Updating wording of task 03 to avoid confusion --- src/03-is-even/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/03-is-even/index.ts b/src/03-is-even/index.ts index 1e9635e..88a263f 100644 --- a/src/03-is-even/index.ts +++ b/src/03-is-even/index.ts @@ -3,7 +3,6 @@ * * Determine if given number is even * without using a mathematic operator ( +, -, %, /, Math, ParseInt etc.) - * nor a conditional operator. * * Examples: * isEven(4) === true From 4d29c112dfd73b4b1dab6d47bfa39b0e90e27c1a Mon Sep 17 00:00:00 2001 From: Arturs Bondars Date: Tue, 11 Jul 2023 20:58:10 +0000 Subject: [PATCH 2/2] Adding a test to check if numbers are removed from the string. --- src/04-longest-word/test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/04-longest-word/test.ts b/src/04-longest-word/test.ts index 711a123..1f3607a 100644 --- a/src/04-longest-word/test.ts +++ b/src/04-longest-word/test.ts @@ -5,5 +5,6 @@ describe("LongestWord function", () => { expect(longestWord("Hello there")).toEqual("Hello"); expect(longestWord("My name is Adam")).toEqual("name"); expect(longestWord("fun&!! time")).toEqual("time"); + expect(longestWord("Houston, we have a 12problem")).toEqual("Houston"); }); });