Permalink
Browse files

Added basic Lua and Tcl test.

  • Loading branch information...
1 parent 435a71a commit 867345083cf81ead1f9c5345fbb621ae11c91b01 @lian lian committed Aug 16, 2010
Showing with 12 additions and 0 deletions.
  1. +12 −0 test/basic.rb
View
@@ -26,6 +26,18 @@
results.should.equal %{text on stdout\n}
end
+ it 'can submit Lua code and receive stdout' do
+ paste_id = Ideone.submit( :lua, %{print "text on stdout"} )
+ results = Ideone.run( paste_id, nil )
+ results.should.equal %{text on stdout\n}
+ end
+
+ it 'can submit Tcl code and receive stdout' do
+ paste_id = Ideone.submit( :tcl, %{puts "text on stdout";} )
+ results = Ideone.run( paste_id, nil )
+ results.should.equal %{text on stdout\n}
+ end
+
it 'can submit Bash code and receive stdout' do
paste_id = Ideone.submit( :bash, %{echo "text on stdout"} )
results = Ideone.run( paste_id, nil )

0 comments on commit 8673450

Please sign in to comment.