@@ -5,12 +5,12 @@ describe('Knapsack', () => {
5
5
expect ( knapsack ( 100 , [ ] ) ) . toEqual ( 0 ) ;
6
6
} ) ;
7
7
8
- test ( 'one item, too heavy' , ( ) => {
8
+ xtest ( 'one item, too heavy' , ( ) => {
9
9
const items = [ { weight : 100 , value : 1 } ] ;
10
10
expect ( knapsack ( 10 , items ) ) . toEqual ( 0 ) ;
11
11
} ) ;
12
12
13
- test ( 'five items (cannot be greedy by weight)' , ( ) => {
13
+ xtest ( 'five items (cannot be greedy by weight)' , ( ) => {
14
14
const items = [
15
15
{ weight : 2 , value : 5 } ,
16
16
{ weight : 2 , value : 5 } ,
@@ -21,7 +21,7 @@ describe('Knapsack', () => {
21
21
expect ( knapsack ( 10 , items ) ) . toEqual ( 21 ) ;
22
22
} ) ;
23
23
24
- test ( 'five items (cannot be greedy by value)' , ( ) => {
24
+ xtest ( 'five items (cannot be greedy by value)' , ( ) => {
25
25
const items = [
26
26
{ weight : 2 , value : 20 } ,
27
27
{ weight : 2 , value : 20 } ,
@@ -32,7 +32,7 @@ describe('Knapsack', () => {
32
32
expect ( knapsack ( 10 , items ) ) . toEqual ( 80 ) ;
33
33
} ) ;
34
34
35
- test ( 'example knapsack' , ( ) => {
35
+ xtest ( 'example knapsack' , ( ) => {
36
36
const items = [
37
37
{ weight : 5 , value : 10 } ,
38
38
{ weight : 4 , value : 40 } ,
@@ -42,7 +42,7 @@ describe('Knapsack', () => {
42
42
expect ( knapsack ( 10 , items ) ) . toEqual ( 90 ) ;
43
43
} ) ;
44
44
45
- test ( '8 items' , ( ) => {
45
+ xtest ( '8 items' , ( ) => {
46
46
const items = [
47
47
{ weight : 25 , value : 350 } ,
48
48
{ weight : 35 , value : 400 } ,
@@ -56,7 +56,7 @@ describe('Knapsack', () => {
56
56
expect ( knapsack ( 104 , items ) ) . toEqual ( 900 ) ;
57
57
} ) ;
58
58
59
- test ( '15 items' , ( ) => {
59
+ xtest ( '15 items' , ( ) => {
60
60
const items = [
61
61
{ weight : 70 , value : 135 } ,
62
62
{ weight : 73 , value : 139 } ,
0 commit comments