automate mains test more
move sources and include exit code and stdout in filename
This commit is contained in:
7
test/mains/source/adds__10.rb
Normal file
7
test/mains/source/adds__10.rb
Normal file
@ -0,0 +1,7 @@
|
||||
a = 0
|
||||
b = 20
|
||||
while( a < b )
|
||||
a = a + 1
|
||||
b = b - 1
|
||||
end
|
||||
return a
|
11
test/mains/source/fibo__8.rb
Normal file
11
test/mains/source/fibo__8.rb
Normal file
@ -0,0 +1,11 @@
|
||||
n = 6
|
||||
a = 0
|
||||
b = 1
|
||||
i = 1
|
||||
while( i < n )
|
||||
result = a + b
|
||||
a = b
|
||||
b = result
|
||||
i = i + 1
|
||||
end
|
||||
return result
|
1
test/mains/source/puts_Hello-there_11.rb
Normal file
1
test/mains/source/puts_Hello-there_11.rb
Normal file
@ -0,0 +1 @@
|
||||
return "Hello-there".putstring
|
5
test/mains/source/subs__0.rb
Normal file
5
test/mains/source/subs__0.rb
Normal file
@ -0,0 +1,5 @@
|
||||
b = 10
|
||||
while( b >= 1 )
|
||||
b = b - 1
|
||||
end
|
||||
return b
|
Reference in New Issue
Block a user