@@ -8,15 +8,34 @@ import {
88 CachedMeasure ,
99 Split ,
1010} 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' ;
1212import { delay , Lazy } from '../../4-lazy/index.js' ;
1313import _prepend_small_list from '../../0-core/_fast/_prepend_small_list.js' ;
1414import _fill_right from '../../0-core/_fast/_fill_right.js' ;
1515import isSameMeasure from '../../_debug/isSameMeasure.js' ;
1616import _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' ;
1819
1920export 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+ ) ;
2039 assert ( middle instanceof Lazy || middle . M instanceof CachedMeasure ) ;
2140 this . M = M ;
2241 this . left = left ;
0 commit comments