Skip to content

[FIX] [REFACTOR] typo in logs. #425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/hackerrank/implementation/betweenTwoSets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { logger as console } from '../../logger';

import { getTotalX, factorOf, isFactor } from './betweenTwoSets';

describe('between Two Sets', () => {
it('between Two Sets Border cases', () => {
describe('betweenTwoSets', () => {
it('getTotalX Border cases', () => {
expect.assertions(5);

const input = [16, 32, 96];
Expand Down
2 changes: 1 addition & 1 deletion src/hackerrank/implementation/birthday.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { logger as console } from '../../logger';

import { birthday } from './birthday';

describe('subarray Division', () => {
describe('the-birthday-bar', () => {
it('subarray Division test case 0', () => {
expect.assertions(1);

Expand Down
8 changes: 4 additions & 4 deletions src/hackerrank/implementation/breakingRecords.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import { logger as console } from '../../logger';

import { breakingRecords } from './breakingRecords';

describe('breaking the Records', () => {
it('breaking the Records Border case', () => {
describe('breakingRecords', () => {
it('breakingRecords Border case', () => {
expect.assertions(1);

expect(() => {
breakingRecords([]);
}).toThrow('Empty input');
});

it('breaking the Records Test case 0', () => {
it('breakingRecords Test case 0', () => {
expect.assertions(1);

const input = [10, 5, 20, 20, 4, 5, 2, 25, 1];
Expand All @@ -25,7 +25,7 @@ describe('breaking the Records', () => {
expect(calculated).toStrictEqual(solutionFound);
});

it('breaking the Records Test case 1', () => {
it('breakingRecords Test case 1', () => {
expect.assertions(1);

const input = [10, 5, 20, 20, 4, 5, 2, 25, 1];
Expand Down
6 changes: 3 additions & 3 deletions src/hackerrank/implementation/countingValleys.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { logger as console } from '../../logger';

import { countingValleys } from './countingValleys';

describe('counting Valleys', () => {
it('counting Valleys Test case 0', () => {
describe('countingValleys', () => {
it('countingValleys Test case 0', () => {
expect.assertions(1);

const input = 'UDDDUDUU';
Expand All @@ -17,7 +17,7 @@ describe('counting Valleys', () => {
expect(calculated).toBe(solutionFound);
});

it('counting Valleys Test case 1', () => {
it('countingValleys Test case 1', () => {
expect.assertions(1);

const input = 'DDUUDDUDUUUD';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('arrays: crush (bruteforce) small cases', () => {
const answer = arrayManipulation(test.n, test.queries);

console.debug(
`rotLeftOne(${test.n}, ${test.queries}) solution found: ${answer}`
`arrayManipulation(${test.n}, ${test.queries}) solution found: ${answer}`
);

expect(answer).toStrictEqual(test.expected);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('arrays: crush (optimized)', () => {
const answer = arrayManipulation(test.n, test.queries);

console.debug(
`rotLeftOne(${test.n}, ${test.queries}) solution found: ${answer}`
`arrayManipulation(${test.n}, ${test.queries}) solution found: ${answer}`
);

expect(answer).toStrictEqual(test.expected);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('two_strings', () => {
const answer = twoStrings(test.s1, test.s2);

console.debug(
`checkMagazine(${test.s1}, ${test.s2}) solution found: ${answer}`
`twoStrings(${test.s1}, ${test.s2}) solution found: ${answer}`
);

expect(answer).toStrictEqual(test.expected);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { maxMin } from './angry_children';
import TEST_CASES from './angry_children.testcases.json';

describe('angry_children', () => {
it('angry_children test cases', () => {
it('maxMin test cases', () => {
expect.assertions(4);

TEST_CASES.forEach((test) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('flipping bits', () => {
test_set.tests.forEach((test) => {
const answer = flippingBits(test.input);

console.debug(`luckBalance(${test.input}) solution found: ${answer}`);
console.debug(`flippingBits(${test.input}) solution found: ${answer}`);

expect(answer).toStrictEqual(test.expected);
});
Expand All @@ -76,7 +76,7 @@ describe('flipping bits', () => {

const answer = flippingBits(input);

console.debug(`luckBalance(${input}) solution found: ${answer}`);
console.debug(`flippingBits(${input}) solution found: ${answer}`);

expect(answer).toStrictEqual(expected);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('friend_circle_queries', () => {
TEST_CASES.forEach((test) => {
const answer = maxCircle(test.arr);

console.debug(`luckBalance(${test.arr}) solution found: ${answer}`);
console.debug(`maxCircle(${test.arr}) solution found: ${answer}`);

expect(answer).toStrictEqual(test.expected);
});
Expand Down
2 changes: 1 addition & 1 deletion src/hackerrank/warmup/birthdayCakeCandles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { logger as console } from '../../logger';
import { birthdayCakeCandles } from './birthdayCakeCandles';

describe('birthdayCakeCandles', () => {
it('miniMaxSum border case', () => {
it('birthdayCakeCandles border case', () => {
expect.assertions(1);

expect(() => {
Expand Down
6 changes: 3 additions & 3 deletions src/hackerrank/warmup/compareTriplets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { logger as console } from '../../logger';

import { compareTriplets } from './compareTriplets';

describe('problem simpleArraySum', () => {
it('problem simpleArraySum Border case', () => {
describe('compareTriplets', () => {
it('problem compareTriplets Border case', () => {
expect.assertions(1);

const a = [1];
Expand All @@ -15,7 +15,7 @@ describe('problem simpleArraySum', () => {
}).toThrow('Wrong comparition length');
});

it('problem simpleArraySum Test case 0', () => {
it('problem compareTriplets Test case 0', () => {
expect.assertions(1);

const a = [5, 6, 7];
Expand Down
4 changes: 2 additions & 2 deletions src/hackerrank/warmup/plusMinus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { logger as console } from '../../logger';

import { plusMinus } from './plusMinus';

describe('plus Minus', () => {
it('plus Minus Test case 1', () => {
describe('plusMinus', () => {
it('plusMinus Test case 1', () => {
expect.assertions(1);

const input = [-4, 3, -9, 0, 4, 1];
Expand Down