@@ -8,15 +8,34 @@ import {
8
8
CachedMeasure ,
9
9
Split ,
10
10
} from '../../0-core/index.js' ;
11
- import { One , Two , Four } from '../../1-digit/index.js' ;
11
+ import { One , Two , Three , Four } from '../../1-digit/index.js' ;
12
12
import { delay , Lazy } from '../../4-lazy/index.js' ;
13
13
import _prepend_small_list from '../../0-core/_fast/_prepend_small_list.js' ;
14
14
import _fill_right from '../../0-core/_fast/_fill_right.js' ;
15
15
import isSameMeasure from '../../_debug/isSameMeasure.js' ;
16
16
import _append_small_list from '../../0-core/_fast/_append_small_list.js' ;
17
- import { Empty } from './index.js' ;
17
+ import { Empty } from './0-Empty.js' ;
18
+ import { Single } from './1-Single.js' ;
18
19
19
20
export function Deep ( M , left , middle , right ) {
21
+ assert (
22
+ left instanceof One ||
23
+ left instanceof Two ||
24
+ left instanceof Three ||
25
+ left instanceof Four ,
26
+ ) ;
27
+ assert (
28
+ middle instanceof Empty ||
29
+ middle instanceof Single ||
30
+ middle instanceof Deep ||
31
+ middle instanceof Lazy ,
32
+ ) ;
33
+ assert (
34
+ right instanceof One ||
35
+ right instanceof Two ||
36
+ right instanceof Three ||
37
+ right instanceof Four ,
38
+ ) ;
20
39
assert ( middle instanceof Lazy || middle . M instanceof CachedMeasure ) ;
21
40
this . M = M ;
22
41
this . left = left ;
0 commit comments