change test framework to use files for in and out (s-exp)
This commit is contained in:
3
test/cases/compound/array_list.tst
Normal file
3
test/cases/compound/array_list.tst
Normal file
@ -0,0 +1,3 @@
|
||||
[42, foo]
|
||||
-- -- --
|
||||
s(:list, [s(:array, [s(:int, 42), s(:name, "foo")])])
|
8
test/cases/compound/array_ops.tst
Normal file
8
test/cases/compound/array_ops.tst
Normal 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)))])])
|
5
test/cases/compound/hash.tst
Normal file
5
test/cases/compound/hash.tst
Normal file
@ -0,0 +1,5 @@
|
||||
{ foo => 33 }
|
||||
-- -- --
|
||||
s(:list, [s(:hash, [s(:assoc,
|
||||
s(:name, "foo"),
|
||||
s(:int, 33))])])
|
5
test/cases/compound/hash2.tst
Normal file
5
test/cases/compound/hash2.tst
Normal file
@ -0,0 +1,5 @@
|
||||
{ foo => true }
|
||||
-- -- --
|
||||
s(:list, [s(:hash, [s(:assoc,
|
||||
s(:name, "foo"),
|
||||
s(:true))])])
|
7
test/cases/compound/hash_list.tst
Normal file
7
test/cases/compound/hash_list.tst
Normal 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))])])
|
3
test/cases/compound/one_array.tst
Normal file
3
test/cases/compound/one_array.tst
Normal file
@ -0,0 +1,3 @@
|
||||
[42]
|
||||
-- -- --
|
||||
s(:list, [s(:array, [s(:int, 42)])])
|
Reference in New Issue
Block a user