Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ import { maxMin } from './angry_children';

import TEST_CASES from './angry_children.testcases.json';

describe('luck-balance', () => {
it('luckBalance test cases', () => {
describe('angry_children', () => {
it('angry_children test cases', () => {
expect.assertions(4);

TEST_CASES.forEach((test) => {
const answer = maxMin(test.k, test.arr);

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

expect(answer).toStrictEqual(test.expected);
});
Expand Down