change test framework to use files for in and out (s-exp)

This commit is contained in:
Torsten Ruger
2015-09-18 21:55:02 +03:00
parent 396a843a5e
commit 22e3c59674
80 changed files with 946 additions and 13 deletions

View File

@ -0,0 +1,7 @@
puts(3 , a )
-- -- --
s(:list, [s(:call,
s(:name, "puts"),
s(:arguments,
s(:int, 3),
s(:name, "a")))])

View File

@ -0,0 +1,7 @@
baz(42, foo)
-- -- --
s(:list, [s(:call,
s(:name, "baz"),
s(:arguments,
s(:int, 42),
s(:name, "foo")))])

View File

@ -0,0 +1,6 @@
puts( "hello")
-- -- --
s(:list, [s(:call,
s(:name, "puts"),
s(:arguments,
s(:string, "hello")))])

View File

@ -0,0 +1,7 @@
42.put()
-- -- --
s(:list, [s(:call,
s(:name, "put"),
s(:arguments),
s(:receiver,
s(:int, 42)))])

View File

@ -0,0 +1,6 @@
puts( 5)
-- -- --
s(:list, [s(:call,
s(:name, "puts"),
s(:arguments,
s(:int, 5)))])

View File

@ -0,0 +1,6 @@
foo(42)
-- -- --
s(:list, [s(:call,
s(:name, "foo"),
s(:arguments,
s(:int, 42)))])

View 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")))])

View 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")))])

View 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")))])

View File

@ -0,0 +1,7 @@
"hello".puts()
-- -- --
s(:list, [s(:call,
s(:name, "puts"),
s(:arguments),
s(:receiver,
s(:string, "hello")))])