Skip to content

Commit d1bbdef

Browse files
authored
fix: Added missing xtest (#2550)
1 parent 8f87893 commit d1bbdef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

exercises/practice/knapsack/knapsack.spec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ describe('Knapsack', () => {
55
expect(knapsack(100, [])).toEqual(0);
66
});
77

8-
test('one item, too heavy', () => {
8+
xtest('one item, too heavy', () => {
99
const items = [{ weight: 100, value: 1 }];
1010
expect(knapsack(10, items)).toEqual(0);
1111
});
1212

13-
test('five items (cannot be greedy by weight)', () => {
13+
xtest('five items (cannot be greedy by weight)', () => {
1414
const items = [
1515
{ weight: 2, value: 5 },
1616
{ weight: 2, value: 5 },
@@ -21,7 +21,7 @@ describe('Knapsack', () => {
2121
expect(knapsack(10, items)).toEqual(21);
2222
});
2323

24-
test('five items (cannot be greedy by value)', () => {
24+
xtest('five items (cannot be greedy by value)', () => {
2525
const items = [
2626
{ weight: 2, value: 20 },
2727
{ weight: 2, value: 20 },
@@ -32,7 +32,7 @@ describe('Knapsack', () => {
3232
expect(knapsack(10, items)).toEqual(80);
3333
});
3434

35-
test('example knapsack', () => {
35+
xtest('example knapsack', () => {
3636
const items = [
3737
{ weight: 5, value: 10 },
3838
{ weight: 4, value: 40 },
@@ -42,7 +42,7 @@ describe('Knapsack', () => {
4242
expect(knapsack(10, items)).toEqual(90);
4343
});
4444

45-
test('8 items', () => {
45+
xtest('8 items', () => {
4646
const items = [
4747
{ weight: 25, value: 350 },
4848
{ weight: 35, value: 400 },
@@ -56,7 +56,7 @@ describe('Knapsack', () => {
5656
expect(knapsack(104, items)).toEqual(900);
5757
});
5858

59-
test('15 items', () => {
59+
xtest('15 items', () => {
6060
const items = [
6161
{ weight: 70, value: 135 },
6262
{ weight: 73, value: 139 },

0 commit comments

Comments
 (0)