@@ -18,17 +18,21 @@ describe("Test shallowEqualArrays()", () => {
1818 const arr_n : number [ ] = [ 1 , 2 ] ;
1919 const arr_o : null [ ] = [ null ] ;
2020 const arr_p : null [ ] = [ null ] ;
21+ const arr_q : null [ ] = [ ] ;
2122 it ( "works" , ( ) => {
2223 expect ( shallowEqualArrays ( arr_a , arr_b ) ) . toBe ( true ) ;
2324 expect ( shallowEqualArrays ( arr_a , arr_c ) ) . toBe ( false ) ;
2425 expect ( shallowEqualArrays ( arr_a , arr_d ) ) . toBe ( false ) ;
2526 expect ( shallowEqualArrays ( arr_a , arr_e ) ) . toBe ( false ) ;
27+ expect ( shallowEqualArrays ( arr_e , arr_c ) ) . toBe ( false ) ;
2628 expect ( shallowEqualArrays ( arr_f , arr_g ) ) . toBe ( true ) ;
2729 expect ( shallowEqualArrays ( arr_h , arr_i ) ) . toBe ( false ) ;
2830 expect ( shallowEqualArrays ( arr_j , arr_k ) ) . toBe ( false ) ;
2931 expect ( shallowEqualArrays ( arr_j , arr_l ) ) . toBe ( true ) ;
3032 expect ( shallowEqualArrays ( arr_m , arr_n ) ) . toBe ( true ) ;
3133 expect ( shallowEqualArrays ( arr_m , arr_l ) ) . toBe ( false ) ;
3234 expect ( shallowEqualArrays ( arr_o , arr_p ) ) . toBe ( true ) ;
35+ expect ( shallowEqualArrays ( arr_p , arr_q ) ) . toBe ( false ) ;
36+ expect ( shallowEqualArrays ( arr_p ) ) . toBe ( false ) ;
3337 } ) ;
3438} ) ;
0 commit comments