@@ -28,114 +28,114 @@ feature EDI
2828 .qu.compare[.test.evaluate["."; "last value (;;)"; "serialized"]`data; (::)]
2929
3030 expect function definition to work:
31- .qu.compare[.test.evaluate["."; ".test.fn333: {: 333}"; "serialized"]`data; {: 333}]
31+ .qu.compare[.test.evaluate["."; ".test.fn333: {: 333}"; ::; "serialized"]`data; {: 333}]
3232
3333 expect function call to work and return 333:
34- .qu.compare[.test.evaluate["."; ".test.fn333 []"; "serialized"]`data; 333]
34+ .qu.compare[.test.evaluate["."; ".test.fn333 []"; ::; "serialized"]`data; 333]
3535
3636 xexpect each right and each left of similar expressions to be equal:
3737 .com_kx_edi.dropIrrelevantRecords[.com_kx_ediNoCoverage.evaluate["1 2 3 +\\: 10"; "."]] ~ .com_kx_edi.dropIrrelevantRecords .com_kx_ediNoCoverage.evaluate["10 +/: 1 2 3"; "."]
3838
3939 expect scan to work and return 11 13 16:
40- .qu.compare[.test.evaluate["."; "10 +\\ 1 2 3"; "serialized"]`data; 11 13 16]
40+ .qu.compare[.test.evaluate["."; "10 +\\ 1 2 3"; ::; "serialized"]`data; 11 13 16]
4141
4242 expect over to work and return 16:
43- .qu.compare[.test.evaluate["."; "10 +/ 1 2 3"; "serialized"]`data; 16]
43+ .qu.compare[.test.evaluate["."; "10 +/ 1 2 3"; ::; "serialized"]`data; 16]
4444
4545 expect a list created by EDI to be equal to the list:
46- .qu.compare[.test.evaluate["."; "1 2 3 4 5 6 7 8"; "serialized"]`data; 1 2 3 4 5 6 7 8]
46+ .qu.compare[.test.evaluate["."; "1 2 3 4 5 6 7 8"; ::; "serialized"]`data; 1 2 3 4 5 6 7 8]
4747
4848 expect an expression that creates a list to return the correct list:
49- .qu.compare[.test.evaluate["."; "`char$97+til 26"; "serialized"]`data; "abcdefghijklmnopqrstuvwxyz"]
49+ .qu.compare[.test.evaluate["."; "`char$97+til 26"; ::; "serialized"]`data; "abcdefghijklmnopqrstuvwxyz"]
5050
5151 expect the concat of two lists to be the same:
52- .qu.compare[.test.evaluate["."; "(til 100),(til 100)"; "serialized"]`data; (til[100], til 100)]
52+ .qu.compare[.test.evaluate["."; "(til 100),(til 100)"; ::; "serialized"]`data; (til[100], til 100)]
5353
5454 // @TICKET KXI-9607
5555 should ensure EDI performs display correctly for k expressions
5656 expect simple k expressions to work, 3+3=6:
57- .qu.compare[.test.evaluate["."; "k) 3 + 3"; "serialized"]`data; 6]
57+ .qu.compare[.test.evaluate["."; "k) 3 + 3"; ::; "serialized"]`data; 6]
5858
5959 expect more complicated k expressions to work such as over:
60- .qu.compare[.test.evaluate["."; "k) +/1 2 3 4"; "serialized"]`data; 10]
60+ .qu.compare[.test.evaluate["."; "k) +/1 2 3 4"; ::; "serialized"]`data; 10]
6161
6262 expect more complicated k expressions to work such as dyadic function over:
63- .qu.compare[.test.evaluate["."; "k) {x+2*y}/1 2 3 4"; "serialized"]`data; 19]
63+ .qu.compare[.test.evaluate["."; "k) {x+2*y}/1 2 3 4"; ::; "serialized"]`data; 19]
6464
6565 expect more complicated k expressions to work such as monadic each both:
66- .qu.compare[.test.evaluate["."; "k) (-':)1 2 3 4"; "serialized"]`data; 1 1 1 1]
66+ .qu.compare[.test.evaluate["."; "k) (-':)1 2 3 4"; ::; "serialized"]`data; 1 1 1 1]
6767
6868 expect more complicated k expressions to work such as monadic each both:
69- .qu.compare[.test.evaluate["."; "k) +\\1 2 3 4"; "serialized"]`data; 1 3 6 10]
69+ .qu.compare[.test.evaluate["."; "k) +\\1 2 3 4"; ::; "serialized"]`data; 1 3 6 10]
7070
7171 expect a string to be a string in k:
72- .qu.compare[.test.evaluate["."; "k) \"hello\\\\there\""; "serialized"]`data; "hello\\there"]
72+ .qu.compare[.test.evaluate["."; "k) \"hello\\\\there\""; ::; "serialized"]`data; "hello\\there"]
7373
7474 // @TICKET KXI-9607
7575 should ensure EDI performs display correctly for system expressions
7676 expect it to return timing information:
7777 // this fails intermittently on windows for some reason ...
78- 10 > .test.evaluate["."; "\\t count \"doug\""; "serialized"]`data
78+ 10 > .test.evaluate["."; "\\t count \"doug\""; ::; "serialized"]`data
7979
8080 expect expression in t to set zz correctly:
81- (.test.zz ~ 4) and (10 > .test.evaluate["."; "\\t .test.zz: count \"doug\""; "serialized"]`data)
81+ (.test.zz ~ 4) and (10 > .test.evaluate["."; "\\t .test.zz: count \"doug\""; ::; "serialized"]`data)
8282
8383 expect simple expression in t to work correctly:
84- (.test.zz ~ 4) and (10 > .test.evaluate["."; "\\t .test.zz: 1 + 1 + 1 + 1"; "serialized"]`data)
84+ (.test.zz ~ 4) and (10 > .test.evaluate["."; "\\t .test.zz: 1 + 1 + 1 + 1"; ::; "serialized"]`data)
8585
8686 expect ts to return time and space:
87- .qu.compare[count .test.evaluate["."; "\\ts til 10000"; "serialized"]`data; 2]
87+ .qu.compare[count .test.evaluate["."; "\\ts til 10000"; ::; "serialized"]`data; 2]
8888
8989 expect workspace information to return correctly (should usually work but may fail):
90- (last system "w") ~ last .test.evaluate["."; "\\w"; "serialized"]`data
90+ (last system "w") ~ last .test.evaluate["."; "\\w"; ::; "serialized"]`data
9191
9292 expect ls os command to return data back as a general list equivalent to system call:
9393 $["w" ~ first string .z.o;
9494 // The /b is needed to show the simple results,
9595 // as if just "dir" is used, the results can change between the two calls
96- (system "dir /b") ~ .test.evaluate["."; "\\dir /b"; "serialized"]`data;
97- (system "ls") ~ .test.evaluate["."; "\\ls"; "serialized"]`data];
96+ (system "dir /b") ~ .test.evaluate["."; "\\dir /b"; ::; "serialized"]`data;
97+ (system "ls") ~ .test.evaluate["."; "\\ls"; ::; "serialized"]`data];
9898
9999 expect pwd os command to return the current directory equivalent to system call:
100- (system "cd") ~ .test.evaluate["."; "\\cd"; "serialized"]`data
100+ (system "cd") ~ .test.evaluate["."; "\\cd"; ::; "serialized"]`data
101101
102102 expect a to return a list of tables:
103- 11h ~ type .test.evaluate["."; "\\a"; "serialized"]`data
103+ 11h ~ type .test.evaluate["."; "\\a"; ::; "serialized"]`data
104104
105105 expect c to return the console size:
106- 6h ~ type .test.evaluate["."; "\\c"; "serialized"]`data
106+ 6h ~ type .test.evaluate["."; "\\c"; ::; "serialized"]`data
107107
108108 expect c 100 100 to set the console to 100 100:
109- .test.evaluate["."; "\\c 100 100"; "serialized"]`data;
109+ .test.evaluate["."; "\\c 100 100"; ::; "serialized"]`data;
110110 100 100i ~ system "c"
111111
112112 expect p to provide the port:
113- system["p"] ~ .test.evaluate["."; "\\p"; "serialized"]`data
113+ system["p"] ~ .test.evaluate["."; "\\p"; ::; "serialized"]`data
114114
115115 expect P to provide the precision:
116- system["P"] ~ .test.evaluate["."; "\\P"; "serialized"]`data
116+ system["P"] ~ .test.evaluate["."; "\\P"; ::; "serialized"]`data
117117
118118 expect setting precision to 4 for it to be set to 4:
119- (system ["P"] ~ 4i) and (::) ~ .test.evaluate["."; "\\P 4"; "serialized"]`data
119+ (system ["P"] ~ 4i) and (::) ~ .test.evaluate["."; "\\P 4"; ::; "serialized"]`data
120120
121121 expect setting the precision to 0 sets it to max (same as 16):
122- (system ["P"] ~ 0i) and (::) ~ .test.evaluate["."; "\\P 0"; "serialized"]`data
122+ (system ["P"] ~ 0i) and (::) ~ .test.evaluate["."; "\\P 0"; ::; "serialized"]`data
123123
124124 // @TICKET KXI-9607
125125 should work for non-default contexts
126126 expect correct expression result
127- 6 ~ .test.evaluate[".test"; "3+3"; "serialized"]`data
127+ 6 ~ .test.evaluate[".test"; "3+3"; ::; "serialized"]`data
128128
129129 expect function to be compiled in the correct context
130- `foo ~ first @[;3] value .test.evaluate[".foo"; "fn:{3+3}"; "serialized"]`data
130+ `foo ~ first @[;3] value .test.evaluate[".foo"; "fn:{3+3}"; ::; "serialized"]`data
131131
132132 // @TICKET KXI-9607
133133 should accept alternate values to indicate "."
134134 expect correct expression result
135135 .test.ctx: system "d";
136136 system "d .ignore";
137- .test.evaluate["."; "myVal1: `first"; "serialized"]`data;
138- .test.evaluate["."; "myVal2: `second"; "serialized"]`data;
137+ .test.evaluate["."; "myVal1: `first"; ::; "serialized"]`data;
138+ .test.evaluate["."; "myVal2: `second"; ::; "serialized"]`data;
139139 system "d " , string .test.ctx;
140140 `first`second ~ get each `..myVal1`..myVal2;
141141 after
@@ -147,21 +147,21 @@ feature EDI
147147 should not remove things that look like comments
148148 expect the /test to not be removed
149149 // This needs the trim, because it returns "/test " on windows
150- trim[.test.evaluate["."; "\\echo /test"; "serialized"]`data] ~ enlist "/test"
150+ trim[.test.evaluate["."; "\\echo /test"; ::; "serialized"]`data] ~ enlist "/test"
151151
152152 // @TICKET KXI-9607
153153 // @TICKET KXI-16397
154154 should handle windows line endings
155155 expect this to be treated as a single expression
156- .qu.compare[.test.evaluate["."; "(1\r\n\r\n 2 3)"; "serialized"]`data; 1 2 3]
156+ .qu.compare[.test.evaluate["."; "(1\r\n\r\n 2 3)"; ::; "serialized"]`data; 1 2 3]
157157
158158 // @TICKET KXI-9607
159159 should maintain attributes regardless of semi-colon (KXAX-16342)
160160 expect an attribute with no semi colons
161- `s ~ .test.evaluate["."; "\n" sv .test.attrLines; "serialized"]`data
161+ `s ~ .test.evaluate["."; "\n" sv .test.attrLines; ::; "serialized"]`data
162162 expect an attribute with semi colons
163- `s ~ .test.evaluate["."; "\n" sv .test.attrLines ,\: ";"; "serialized"]`data
163+ `s ~ .test.evaluate["."; "\n" sv .test.attrLines ,\: ";"; ::; "serialized"]`data
164164 expect an attribute with no semi colons with two newlines
165- `s ~ .test.evaluate["."; "\n\n" sv .test.attrLines; "serialized"]`data
165+ `s ~ .test.evaluate["."; "\n\n" sv .test.attrLines; ::; "serialized"]`data
166166 expect an attribute with semi colons with two newlines
167- `s ~ .test.evaluate["."; "\n\n" sv .test.attrLines ,\: ";"; "serialized"]`data
167+ `s ~ .test.evaluate["."; "\n\n" sv .test.attrLines ,\: ";"; ::; "serialized"]`data
0 commit comments