@@ -28,21 +28,21 @@ testCases(endToEnd, code => code)('end-to-end tests', [
2828 [ '{,a,b,c,}' , either . makeRight ( { 0 : 'a' , 1 : 'b' , 2 : 'c' } ) ] ,
2929 [ '{a,1:overwritten,c}' , either . makeRight ( { 0 : 'a' , 1 : 'c' } ) ] ,
3030 [ '{overwritten,0:a,c}' , either . makeRight ( { 0 : 'a' , 1 : 'c' } ) ] ,
31- [ '{@check, {type:true, value:true}}' , either . makeRight ( 'true' ) ] ,
31+ [ '{" @check" , {type:true, value:true}}' , either . makeRight ( 'true' ) ] ,
3232 [
33- '{@panic}' ,
33+ '{" @panic" }' ,
3434 result => {
3535 assert ( either . isLeft ( result ) )
3636 assert ( 'kind' in result . value )
3737 assert . deepEqual ( result . value . kind , 'panic' )
3838 } ,
3939 ] ,
40- [ '{a:A, b:{@lookup, {a}}}' , either . makeRight ( { a : 'A' , b : 'A' } ) ] ,
41- [ '{a:A, {@lookup, {a}}}' , either . makeRight ( { a : 'A' , 0 : 'A' } ) ] ,
40+ [ '{a:A, b:{" @lookup" , {a}}}' , either . makeRight ( { a : 'A' , b : 'A' } ) ] ,
41+ [ '{a:A, {" @lookup" , {a}}}' , either . makeRight ( { a : 'A' , 0 : 'A' } ) ] ,
4242 [ '{a:A, b: :a}' , either . makeRight ( { a : 'A' , b : 'A' } ) ] ,
4343 [ '{a:A, :a}' , either . makeRight ( { a : 'A' , 0 : 'A' } ) ] ,
4444 [
45- '{@runtime, {_ => {@panic}}}' ,
45+ '{" @runtime" , {_ => {" @panic" }}}' ,
4646 result => {
4747 assert ( either . isLeft ( result ) )
4848 assert ( 'kind' in result . value )
@@ -90,12 +90,12 @@ testCases(endToEnd, code => code)('end-to-end tests', [
9090 // foo: bar
9191 "static data":"blah blah blah"
9292 "evaluated data": {
93- 0:@runtime
93+ 0:" @runtime"
9494 1:{
9595 function:{
96- 0:@apply
96+ 0:" @apply"
9797 1:{
98- function:{0:@index, 1:{object:{0:@lookup, 1:{key:object}}, query:{0:lookup}}}
98+ function:{0:" @index" , 1:{object:{0:" @lookup" , 1:{key:object}}, query:{0:lookup}}}
9999 argument:"key which does not exist in runtime context"
100100 }
101101 }
@@ -153,7 +153,7 @@ testCases(endToEnd, code => code)('end-to-end tests', [
153153 ] ,
154154 [ ':match({ a: A })({ tag: a, value: {} })' , either . makeRight ( 'A' ) ] ,
155155 [
156- `{@runtime, { context =>
156+ `{" @runtime" , { context =>
157157 :identity(:context).program.start_time
158158 }}` ,
159159 output => {
@@ -181,7 +181,7 @@ testCases(endToEnd, code => code)('end-to-end tests', [
181181 [ `(1 - 2) - 3` , either . makeRight ( '-4' ) ] ,
182182 [ ':flow(:atom.append(b))(:atom.append(a))(z)' , either . makeRight ( 'zab' ) ] ,
183183 [
184- `{@runtime
184+ `{" @runtime"
185185 { :object.lookup("key which does not exist in runtime context") }
186186 }` ,
187187 either . makeRight ( { tag : 'none' , value : { } } ) ,
@@ -213,7 +213,7 @@ testCases(endToEnd, code => code)('end-to-end tests', [
213213 either . makeRight ( { true : 'true' , false : 'false' } ) ,
214214 ] ,
215215 [
216- `{@runtime, {
216+ `{" @runtime" , {
217217 :flow(
218218 :match({
219219 none: "environment does not exist"
@@ -260,7 +260,7 @@ testCases(endToEnd, code => code)('end-to-end tests', [
260260 either . makeRight ( { 0 : 'a' , 1 : 'b' , 2 : 'c' , 3 : 'd' } ) ,
261261 ] ,
262262 [
263- `{@runtime, { context =>
263+ `{" @runtime" , { context =>
264264 :context.environment.lookup(PATH)
265265 }}` ,
266266 output => {
@@ -273,10 +273,10 @@ testCases(endToEnd, code => code)('end-to-end tests', [
273273 } ,
274274 ] ,
275275 [
276- `{@if, {
276+ `{" @if" , {
277277 true
278278 "it works!"
279- {@panic}
279+ {" @panic" }
280280 }}` ,
281281 either . makeRight ( 'it works!' ) ,
282282 ] ,
@@ -289,19 +289,19 @@ testCases(endToEnd, code => code)('end-to-end tests', [
289289 either . makeRight ( { 0 : 'a' , 1 : 'b' , 2 : 'c' } ) ,
290290 ] ,
291291 [
292- `{@runtime, { context =>
293- {@if, {
292+ `{" @runtime" , { context =>
293+ {" @if" , {
294294 :boolean.not(:boolean.is(:context))
295295 "it works!"
296- {@panic}
296+ {" @panic" }
297297 }}
298298 }}` ,
299299 either . makeRight ( 'it works!' ) ,
300300 ] ,
301301 [
302302 `{
303303 fibonacci: n => {
304- @if, {
304+ " @if" , {
305305 :integer.less_than(2)(:n)
306306 then: :n
307307 else: :fibonacci(:n - 1) + :fibonacci(:n - 2)
@@ -362,7 +362,7 @@ testCases(endToEnd, code => code)('end-to-end tests', [
362362 either . makeRight ( '2' ) ,
363363 ] ,
364364 [
365- `{@runtime, { context =>
365+ `{" @runtime" , { context =>
366366 (
367367 PATH
368368 |> :context.environment.lookup
0 commit comments