@@ -21,51 +21,18 @@ testCases(compile, input => `compiling \`${JSON.stringify(input)}\``)(
2121 {
2222 true1 : [ '@check' , true , [ '@lookup' , 'identity' ] ] ,
2323 true2 : [ '@apply' , [ '@index' , [ '@lookup' , 'boolean' ] , [ 'not' ] ] , false ] ,
24- true3 : [
25- '@apply' ,
26- [
27- '@apply' ,
28- [ '@lookup' , 'flow' ] ,
29- [
30- [ '@index' , [ '@lookup' , 'boolean' ] , [ 'not' ] ] ,
31- [ '@index' , [ '@lookup' , 'boolean' ] , [ 'not' ] ] ,
32- ] ,
33- ] ,
34- true ,
35- ] ,
3624 false1 : [ '@check' , false , [ '@index' , [ '@lookup' , 'boolean' ] , [ 'is' ] ] ] ,
3725 false2 : [
3826 '@apply' ,
3927 [ '@index' , [ '@lookup' , 'boolean' ] , [ 'is' ] ] ,
4028 'not a boolean' ,
4129 ] ,
42- false3 : [
43- '@apply' ,
44- [
45- '@apply' ,
46- [ '@lookup' , 'flow' ] ,
47- [
48- [
49- '@apply' ,
50- [ '@lookup' , 'flow' ] ,
51- [
52- [ '@index' , [ '@lookup' , 'boolean' ] , [ 'not' ] ] ,
53- [ '@index' , [ '@lookup' , 'boolean' ] , [ 'not' ] ] ,
54- ] ,
55- ] ,
56- [ '@index' , [ '@lookup' , 'boolean' ] , [ 'not' ] ] ,
57- ] ,
58- ] ,
59- true ,
60- ] ,
6130 } ,
6231 success ( {
6332 true1 : 'true' ,
6433 true2 : 'true' ,
65- true3 : 'true' ,
6634 false1 : 'false' ,
6735 false2 : 'false' ,
68- false3 : 'false' ,
6936 } ) ,
7037 ] ,
7138 [
@@ -116,37 +83,25 @@ testCases(compile, input => `compiling \`${JSON.stringify(input)}\``)(
11683 '@runtime' ,
11784 [
11885 '@apply' ,
119- [ '@lookup' , 'flow' ] ,
120- [
121- [ '@lookup' , 'identity' ] ,
122- [ '@lookup' , 'identity' ] ,
123- ] ,
86+ [ '@apply' , [ '@lookup' , 'flow' ] , [ '@lookup' , 'identity' ] ] ,
87+ [ '@lookup' , 'identity' ] ,
12488 ] ,
12589 ] ,
12690 success ( {
12791 0 : '@runtime' ,
12892 function : {
12993 0 : '@apply' ,
130- function : { 0 : '@lookup' , key : 'flow' } ,
131- argument : {
132- 0 : { 0 : '@lookup' , key : 'identity ' } ,
133- 1 : { 0 : '@lookup' , key : 'identity' } ,
94+ function : {
95+ 0 : '@apply' ,
96+ function : { 0 : '@lookup' , key : 'flow ' } ,
97+ argument : { 0 : '@lookup' , key : 'identity' } ,
13498 } ,
99+ argument : { 0 : '@lookup' , key : 'identity' } ,
135100 } ,
136101 } ) ,
137102 ] ,
138103 [
139- [
140- '@runtime' ,
141- [
142- '@apply' ,
143- [ '@lookup' , 'flow' ] ,
144- [
145- [ '@index' , [ '@lookup' , 'boolean' ] , [ 'not' ] ] ,
146- [ '@index' , [ '@lookup' , 'boolean' ] , [ 'not' ] ] ,
147- ] ,
148- ] ,
149- ] ,
104+ [ '@runtime' , [ '@index' , [ '@lookup' , 'boolean' ] , [ 'not' ] ] ] ,
150105 output => {
151106 assert ( either . isLeft ( output ) )
152107 assert ( output . value . kind === 'typeMismatch' )
0 commit comments