summaryrefslogtreecommitdiff
path: root/test/ruby/beginmainend.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-05 02:56:42 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-05 02:56:42 +0000
commitd77b17aa73110c289c354316bb9c600f53bb3684 (patch)
tree8dc570bcfc105400f00ab658ef166085e0ef7575 /test/ruby/beginmainend.rb
parent1e85ca8a02a4e0e77f2144e91bf12d920993a303 (diff)
* test/ruby/envutil.rb: added. split "rubybin" from test_system.rb.
* test/ruby/test_system.rb: use envutil.rb * test/ruby/test_beginendblock.rb: added. * test/ruby/beginmainend.rb: added. used in test_beginendblock.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/beginmainend.rb')
-rw-r--r--test/ruby/beginmainend.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/beginmainend.rb b/test/ruby/beginmainend.rb
new file mode 100644
index 0000000000..4ee1d7899a
--- /dev/null
+++ b/test/ruby/beginmainend.rb
@@ -0,0 +1,9 @@
+BEGIN {
+ puts "begin"
+}
+
+puts "main"
+
+END {
+ puts "end"
+}