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,3 @@
[42, foo]
-- -- --
s(:list, [s(:array, [s(:int, 42), s(:name, "foo")])])

View File

@ -0,0 +1,8 @@
[ 3 + 4 , foo(22) ]
-- -- --
s(:list, [s(:array, [s(:operator, "+",
s(:int, 3),
s(:int, 4)), s(:call,
s(:name, "foo"),
s(:arguments,
s(:int, 22)))])])

View File

@ -0,0 +1,5 @@
{ foo => 33 }
-- -- --
s(:list, [s(:hash, [s(:assoc,
s(:name, "foo"),
s(:int, 33))])])

View File

@ -0,0 +1,5 @@
{ foo => true }
-- -- --
s(:list, [s(:hash, [s(:assoc,
s(:name, "foo"),
s(:true))])])

View File

@ -0,0 +1,7 @@
{foo => 33 , bar => 42}
-- -- --
s(:list, [s(:hash, [s(:assoc,
s(:name, "foo"),
s(:int, 33)), s(:assoc,
s(:name, "bar"),
s(:int, 42))])])

View File

@ -0,0 +1,3 @@
[42]
-- -- --
s(:list, [s(:array, [s(:int, 42)])])