@@ -63,9 +63,9 @@ describe(MultiStack.name, () => {
63
63
describe ( DoubleStack . name , ( ) => {
64
64
describe ( `left stack` , ( ) => {
65
65
[
66
- { capacity : null , values : [ 1 ] } ,
67
- { capacity : null , values : [ 1 , 2 ] } ,
68
- { capacity : null , values : [ 1 , 2 , 3 ] } ,
66
+ { capacity : undefined , values : [ 1 ] } ,
67
+ { capacity : undefined , values : [ 1 , 2 ] } ,
68
+ { capacity : undefined , values : [ 1 , 2 , 3 ] } ,
69
69
] . forEach ( testCase => {
70
70
it ( `Should correctly implement pushLeft(), popLeft(), isEmpty* for ${ JSON . stringify ( testCase ) } ` , ( ) => {
71
71
const { capacity, values } = testCase ;
@@ -86,7 +86,7 @@ describe(DoubleStack.name, () => {
86
86
} ) ;
87
87
88
88
[
89
- { capacity : null , values : [ ] } ,
89
+ { capacity : undefined , values : [ ] } ,
90
90
] . forEach ( testCase => {
91
91
it ( `Should correctly implement pushLeft(), popLeft(), isEmpty* for ${ JSON . stringify ( testCase ) } ` , ( ) => {
92
92
const { capacity, values } = testCase ;
@@ -121,9 +121,9 @@ describe(DoubleStack.name, () => {
121
121
122
122
describe ( `right stack` , ( ) => {
123
123
[
124
- { capacity : null , values : [ 1 ] } ,
125
- { capacity : null , values : [ 1 , 2 ] } ,
126
- { capacity : null , values : [ 1 , 2 , 3 ] } ,
124
+ { capacity : undefined , values : [ 1 ] } ,
125
+ { capacity : undefined , values : [ 1 , 2 ] } ,
126
+ { capacity : undefined , values : [ 1 , 2 , 3 ] } ,
127
127
] . forEach ( testCase => {
128
128
it ( `Should correctly implement pushRight(), popRight(), isEmpty* for ${ JSON . stringify ( testCase ) } ` , ( ) => {
129
129
const { capacity, values } = testCase ;
@@ -144,7 +144,7 @@ describe(DoubleStack.name, () => {
144
144
} ) ;
145
145
146
146
[
147
- { capacity : null , values : [ ] } ,
147
+ { capacity : undefined , values : [ ] } ,
148
148
] . forEach ( testCase => {
149
149
it ( `Should correctly implement pushRight(), popRight(), isEmpty* for ${ JSON . stringify ( testCase ) } ` , ( ) => {
150
150
const { capacity, values } = testCase ;
@@ -232,9 +232,9 @@ describe(DoubleStack.name, () => {
232
232
233
233
describe ( SingleStack . name , ( ) => {
234
234
[
235
- { capacity : null , values : [ 1 ] } ,
236
- { capacity : null , values : [ 1 , 2 ] } ,
237
- { capacity : null , values : [ 1 , 2 , 3 ] } ,
235
+ { capacity : undefined , values : [ 1 ] } ,
236
+ { capacity : undefined , values : [ 1 , 2 ] } ,
237
+ { capacity : undefined , values : [ 1 , 2 , 3 ] } ,
238
238
] . forEach ( testCase => {
239
239
it ( `Should correctly implement push(), pop(), isEmpty for ${ JSON . stringify ( testCase ) } ` , ( ) => {
240
240
const { capacity, values } = testCase ;
@@ -254,7 +254,7 @@ describe(SingleStack.name, () => {
254
254
} ) ;
255
255
256
256
[
257
- { capacity : null , values : [ ] } ,
257
+ { capacity : undefined , values : [ ] } ,
258
258
] . forEach ( testCase => {
259
259
it ( `Should correctly implement push(), pop(), isEmpty for ${ JSON . stringify ( testCase ) } ` , ( ) => {
260
260
const { capacity, values } = testCase ;
0 commit comments