@@ -11,9 +11,11 @@ import {
11
11
fromRightToString as fr ,
12
12
} from '../../../_fixtures.js' ;
13
13
14
+ import { empty } from '../../../../../src/index.js' ;
15
+
14
16
const flfr = ( t , M , A , B ) => {
15
- const left = fromLeft ( M , A ) ;
16
- const right = fromRight ( M , B ) ;
17
+ const left = fromLeft ( empty ( M ) , A ) ;
18
+ const right = fromRight ( empty ( M ) , B ) ;
17
19
const tree = left . concat ( right ) ;
18
20
const expected = Array . from ( A ) . concat ( Array . from ( B ) ) ;
19
21
t . is ( tree . measure ( ) , expected . length ) ;
@@ -23,8 +25,8 @@ const flfr = (t, M, A, B) => {
23
25
flfr . title = ( title , M , A , B ) => title ?? `${ fl ( M , A ) } .concat(${ fr ( M , B ) } )` ;
24
26
25
27
const flifrt = ( t , M , A , B ) => {
26
- const left = fromLeft ( M , A ) . init ( ) ;
27
- const right = fromRight ( M , B ) . tail ( ) ;
28
+ const left = fromLeft ( empty ( M ) , A ) . init ( ) ;
29
+ const right = fromRight ( empty ( M ) , B ) . tail ( ) ;
28
30
const tree = left . concat ( right ) ;
29
31
const expected = Array . from ( A ) . slice ( 0 , - 1 ) . concat ( Array . from ( B ) . slice ( 1 ) ) ;
30
32
t . is ( tree . measure ( ) , expected . length ) ;
0 commit comments