@@ -940,15 +940,26 @@ describe("Array", () => {
940940 } )
941941
942942 it ( "window" , ( ) => {
943+ const two : number = 2
943944 // Array
944- expect ( Array . window ( strings , 2 ) ) . type . toBe < Array < Array < string > > > ( )
945- expect ( pipe ( strings , Array . window ( 2 ) ) ) . type . toBe < Array < Array < string > > > ( )
946- expect ( Array . window ( 2 ) ( strings ) ) . type . toBe < Array < Array < string > > > ( )
945+ expect ( Array . window ( strings , two ) ) . type . toBe < Array < Array < string > > > ( )
946+ expect ( pipe ( strings , Array . window ( two ) ) ) . type . toBe < Array < Array < string > > > ( )
947+ expect ( Array . window ( two ) ( strings ) ) . type . toBe < Array < Array < string > > > ( )
947948
948949 // NonEmptyArray
949- expect ( Array . window ( nonEmptyStrings , 2 ) ) . type . toBe < Array < Array < string > > > ( )
950- expect ( pipe ( nonEmptyStrings , Array . window ( 2 ) ) ) . type . toBe < Array < Array < string > > > ( )
951- expect ( Array . window ( 2 ) ( nonEmptyStrings ) ) . type . toBe < Array < Array < string > > > ( )
950+ expect ( Array . window ( nonEmptyStrings , two ) ) . type . toBe < Array < Array < string > > > ( )
951+ expect ( pipe ( nonEmptyStrings , Array . window ( two ) ) ) . type . toBe < Array < Array < string > > > ( )
952+ expect ( Array . window ( two ) ( nonEmptyStrings ) ) . type . toBe < Array < Array < string > > > ( )
953+
954+ // literal + Array
955+ expect ( Array . window ( strings , 2 ) ) . type . toBe < Array < [ string , string ] > > ( )
956+ expect ( pipe ( strings , Array . window ( 2 ) ) ) . type . toBe < Array < [ string , string ] > > ( )
957+ expect ( Array . window ( 2 ) ( strings ) ) . type . toBe < Array < [ string , string ] > > ( )
958+
959+ // literal + NonEmptyArray
960+ expect ( Array . window ( nonEmptyStrings , 2 ) ) . type . toBe < Array < [ string , string ] > > ( )
961+ expect ( pipe ( nonEmptyStrings , Array . window ( 2 ) ) ) . type . toBe < Array < [ string , string ] > > ( )
962+ expect ( Array . window ( 2 ) ( nonEmptyStrings ) ) . type . toBe < Array < [ string , string ] > > ( )
952963 } )
953964
954965 it ( "reverse" , ( ) => {
0 commit comments