Skip to content

Commit

Permalink
feat(2023): update challenge #1 and #3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
iswilljr committed Dec 4, 2023
1 parent a6004ee commit f739b7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 2023/challenge-01/challenge-01.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const TEST_CASES: TestCases<number[], number> = [
{ args: [12, 20, 30, 11, 20, 12], expected: 20 },
{ args: [12, 10, 13, 12, 13], expected: 12 },
{ args: [0, 10, 13, 0, 13], expected: 0 },
{ args: [1, 3, 4, 5, 0, 1, 3, 0, 7], expected: 1 },
{ args: [1, 10, 2, 10, 20, 50, 7, 0, 0, 7], expected: 10 },
]

describe('Challenge #1: First gift repeated!', () => {
Expand Down
2 changes: 2 additions & 0 deletions 2023/challenge-03/challenge-03.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import { findNaughtyStep } from './challenge-03'

const TEST_CASES: TestCases<[string, string], string> = [
{ args: ['abcd', 'abcde'], expected: 'e' },
{ args: ['abcde', 'abcd'], expected: 'e' },
{ args: ['xxxx', 'xxoxx'], expected: 'o' },
{ args: ['stepfor', 'stepor'], expected: 'f' },
{ args: ['iiiii', 'iiiii'], expected: '' },
{ args: ['iiii', 'iiiii'], expected: 'i' },
]

describe('Challenge #3: The naughty elf', () => {
Expand Down

0 comments on commit f739b7c

Please sign in to comment.