change test framework to use files for in and out (s-exp)
This commit is contained in:
22
test/cases/while/while_method.tst
Normal file
22
test/cases/while/while_method.tst
Normal file
@@ -0,0 +1,22 @@
|
||||
while(1)
|
||||
tmp = String.new()
|
||||
tmp.puts(i)
|
||||
end
|
||||
-- -- --
|
||||
s(:list, [s(:while,
|
||||
s(:condition,
|
||||
s(:int, 1)),
|
||||
s(:expressions,
|
||||
s(:assign,
|
||||
s(:name, "tmp"),
|
||||
s(:call,
|
||||
s(:name, "new"),
|
||||
s(:arguments),
|
||||
s(:receiver,
|
||||
s(:module, "String")))),
|
||||
s(:call,
|
||||
s(:name, "puts"),
|
||||
s(:arguments,
|
||||
s(:name, "i")),
|
||||
s(:receiver,
|
||||
s(:name, "tmp")))))])
|
Reference in New Issue
Block a user