@@ -2181,7 +2181,69 @@ makeTest(2);
21812181
21822182makeTest ( 3 ) ;
21832183
2184- b ( "File \"bs_list_test.ml\", line 320, characters 4-11" , 1 - Belt_List . eq ( /* :: */ [
2184+ function cmp ( a , b ) {
2185+ return a - b | 0 ;
2186+ }
2187+
2188+ eq ( "SORT" , Belt_List . sort ( /* :: */ [
2189+ 5 ,
2190+ /* :: */ [
2191+ 4 ,
2192+ /* :: */ [
2193+ 3 ,
2194+ /* :: */ [
2195+ 2 ,
2196+ /* [] */ 0
2197+ ]
2198+ ]
2199+ ]
2200+ ] , cmp ) , /* :: */ [
2201+ 2 ,
2202+ /* :: */ [
2203+ 3 ,
2204+ /* :: */ [
2205+ 4 ,
2206+ /* :: */ [
2207+ 5 ,
2208+ /* [] */ 0
2209+ ]
2210+ ]
2211+ ]
2212+ ] ) ;
2213+
2214+ eq ( "SORT" , Belt_List . sort ( /* :: */ [
2215+ 3 ,
2216+ /* :: */ [
2217+ 9 ,
2218+ /* :: */ [
2219+ 37 ,
2220+ /* :: */ [
2221+ 3 ,
2222+ /* :: */ [
2223+ 1 ,
2224+ /* [] */ 0
2225+ ]
2226+ ]
2227+ ]
2228+ ]
2229+ ] , cmp ) , /* :: */ [
2230+ 1 ,
2231+ /* :: */ [
2232+ 3 ,
2233+ /* :: */ [
2234+ 3 ,
2235+ /* :: */ [
2236+ 9 ,
2237+ /* :: */ [
2238+ 37 ,
2239+ /* [] */ 0
2240+ ]
2241+ ]
2242+ ]
2243+ ]
2244+ ] ) ;
2245+
2246+ b ( "File \"bs_list_test.ml\", line 326, characters 4-11" , 1 - Belt_List . eq ( /* :: */ [
21852247 1 ,
21862248 /* :: */ [
21872249 2 ,
@@ -2200,7 +2262,7 @@ b("File \"bs_list_test.ml\", line 320, characters 4-11", 1 - Belt_List.eq(/* ::
22002262 return + ( x === y ) ;
22012263 } ) ) ) ;
22022264
2203- b ( "File \"bs_list_test.ml\", line 321 , characters 4-11" , Belt_List . eq ( /* :: */ [
2265+ b ( "File \"bs_list_test.ml\", line 327 , characters 4-11" , Belt_List . eq ( /* :: */ [
22042266 1 ,
22052267 /* :: */ [
22062268 2 ,
@@ -2222,7 +2284,7 @@ b("File \"bs_list_test.ml\", line 321, characters 4-11", Belt_List.eq(/* :: */[
22222284 return + ( x === y ) ;
22232285 } ) ) ) ;
22242286
2225- b ( "File \"bs_list_test.ml\", line 322 , characters 4-11" , 1 - Belt_List . eq ( /* :: */ [
2287+ b ( "File \"bs_list_test.ml\", line 328 , characters 4-11" , 1 - Belt_List . eq ( /* :: */ [
22262288 1 ,
22272289 /* :: */ [
22282290 2 ,
@@ -2244,7 +2306,7 @@ b("File \"bs_list_test.ml\", line 322, characters 4-11", 1 - Belt_List.eq(/* ::
22442306 return + ( x === y ) ;
22452307 } ) ) ) ;
22462308
2247- b ( "File \"bs_list_test.ml\", line 323 , characters 4-11" , 1 - Belt_List . eq ( /* :: */ [
2309+ b ( "File \"bs_list_test.ml\", line 329 , characters 4-11" , 1 - Belt_List . eq ( /* :: */ [
22482310 1 ,
22492311 /* :: */ [
22502312 2 ,
@@ -2279,7 +2341,7 @@ var u1 = Belt_List.keepMap(u0, (function (x) {
22792341 }
22802342 } ) ) ;
22812343
2282- eq ( "File \"bs_list_test.ml\", line 327 , characters 5-12" , u1 , /* :: */ [
2344+ eq ( "File \"bs_list_test.ml\", line 333 , characters 5-12" , u1 , /* :: */ [
22832345 1 ,
22842346 /* :: */ [
22852347 8 ,
@@ -2290,7 +2352,7 @@ eq("File \"bs_list_test.ml\", line 327, characters 5-12", u1, /* :: */[
22902352 ]
22912353 ] ) ;
22922354
2293- b ( "File \"bs_list_test.ml\", line 328 , characters 4-11" , Caml_obj . caml_equal ( Belt_List . keepMap ( /* :: */ [
2355+ b ( "File \"bs_list_test.ml\", line 334 , characters 4-11" , Caml_obj . caml_equal ( Belt_List . keepMap ( /* :: */ [
22942356 1 ,
22952357 /* :: */ [
22962358 2 ,
@@ -2316,7 +2378,7 @@ b("File \"bs_list_test.ml\", line 328, characters 4-11", Caml_obj.caml_equal(Bel
23162378 ]
23172379 ] ) ) ;
23182380
2319- b ( "File \"bs_list_test.ml\", line 332 , characters 4-11" , + ( Belt_List . keepMap ( /* :: */ [
2381+ b ( "File \"bs_list_test.ml\", line 338 , characters 4-11" , + ( Belt_List . keepMap ( /* :: */ [
23202382 1 ,
23212383 /* :: */ [
23222384 2 ,
0 commit comments