change test framework to use files for in and out (s-exp)
This commit is contained in:
7
test/cases/call_site/call_puts_two.tst
Normal file
7
test/cases/call_site/call_puts_two.tst
Normal file
@ -0,0 +1,7 @@
|
||||
puts(3 , a )
|
||||
-- -- --
|
||||
s(:list, [s(:call,
|
||||
s(:name, "puts"),
|
||||
s(:arguments,
|
||||
s(:int, 3),
|
||||
s(:name, "a")))])
|
7
test/cases/call_site/call_site_multi.tst
Normal file
7
test/cases/call_site/call_site_multi.tst
Normal file
@ -0,0 +1,7 @@
|
||||
baz(42, foo)
|
||||
-- -- --
|
||||
s(:list, [s(:call,
|
||||
s(:name, "baz"),
|
||||
s(:arguments,
|
||||
s(:int, 42),
|
||||
s(:name, "foo")))])
|
6
test/cases/call_site/call_site_string.tst
Normal file
6
test/cases/call_site/call_site_string.tst
Normal file
@ -0,0 +1,6 @@
|
||||
puts( "hello")
|
||||
-- -- --
|
||||
s(:list, [s(:call,
|
||||
s(:name, "puts"),
|
||||
s(:arguments,
|
||||
s(:string, "hello")))])
|
7
test/cases/call_site/int_receiver.tst
Normal file
7
test/cases/call_site/int_receiver.tst
Normal file
@ -0,0 +1,7 @@
|
||||
42.put()
|
||||
-- -- --
|
||||
s(:list, [s(:call,
|
||||
s(:name, "put"),
|
||||
s(:arguments),
|
||||
s(:receiver,
|
||||
s(:int, 42)))])
|
6
test/cases/call_site/puts_call.tst
Normal file
6
test/cases/call_site/puts_call.tst
Normal file
@ -0,0 +1,6 @@
|
||||
puts( 5)
|
||||
-- -- --
|
||||
s(:list, [s(:call,
|
||||
s(:name, "puts"),
|
||||
s(:arguments,
|
||||
s(:int, 5)))])
|
6
test/cases/call_site/single_argument.tst
Normal file
6
test/cases/call_site/single_argument.tst
Normal file
@ -0,0 +1,6 @@
|
||||
foo(42)
|
||||
-- -- --
|
||||
s(:list, [s(:call,
|
||||
s(:name, "foo"),
|
||||
s(:arguments,
|
||||
s(:int, 42)))])
|
8
test/cases/call_site/single_class.tst
Normal file
8
test/cases/call_site/single_class.tst
Normal file
@ -0,0 +1,8 @@
|
||||
Object.foo(42)
|
||||
-- -- --
|
||||
s(:list, [s(:call,
|
||||
s(:name, "foo"),
|
||||
s(:arguments,
|
||||
s(:int, 42)),
|
||||
s(:receiver,
|
||||
s(:module, "Object")))])
|
8
test/cases/call_site/single_name.tst
Normal file
8
test/cases/call_site/single_name.tst
Normal file
@ -0,0 +1,8 @@
|
||||
my_my.foo(42)
|
||||
-- -- --
|
||||
s(:list, [s(:call,
|
||||
s(:name, "foo"),
|
||||
s(:arguments,
|
||||
s(:int, 42)),
|
||||
s(:receiver,
|
||||
s(:name, "my_my")))])
|
8
test/cases/call_site/single_self.tst
Normal file
8
test/cases/call_site/single_self.tst
Normal file
@ -0,0 +1,8 @@
|
||||
self.foo(42)
|
||||
-- -- --
|
||||
s(:list, [s(:call,
|
||||
s(:name, "foo"),
|
||||
s(:arguments,
|
||||
s(:int, 42)),
|
||||
s(:receiver,
|
||||
s(:name, "self")))])
|
7
test/cases/call_site/string_receiver.tst
Normal file
7
test/cases/call_site/string_receiver.tst
Normal file
@ -0,0 +1,7 @@
|
||||
"hello".puts()
|
||||
-- -- --
|
||||
s(:list, [s(:call,
|
||||
s(:name, "puts"),
|
||||
s(:arguments),
|
||||
s(:receiver,
|
||||
s(:string, "hello")))])
|
Reference in New Issue
Block a user