summaryrefslogtreecommitdiff
path: root/test/ruby/tk-calc.in.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-10-15 15:10:04 +0000
committermurphy <murphy@rubychan.de>2006-10-15 15:10:04 +0000
commitf5768c09019b303e82b7b7905b137b0e1df3823c (patch)
treea0bca63a318f848c6932070b4779226520fa040c /test/ruby/tk-calc.in.rb
parentdd1f6c2ed2fa76d8862233494519d797e9ffb488 (diff)
downloadcoderay-f5768c09019b303e82b7b7905b137b0e1df3823c.tar.gz
Moved scanner tests into test/scanners.
Diffstat (limited to 'test/ruby/tk-calc.in.rb')
-rw-r--r--test/ruby/tk-calc.in.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/ruby/tk-calc.in.rb b/test/ruby/tk-calc.in.rb
deleted file mode 100644
index 76272da..0000000
--- a/test/ruby/tk-calc.in.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-require 'tk';TkRoot.new;r,c,b=1,1,%w#7 8 9 + 4 5 6 - 1 2 3 * 0 . /#;d=TkEntry.new{
-grid("row"=>0,"column"=>1,"columnspan"=>4)};b.each_index{|i|TkButton.new{text b[i]
-command proc{d.insert("end",b[i])};grid("row"=>r,"column"=>c)};c+=1;if i&&(i+1)%##
-4==0then r+=1;c=1 end};TkButton.new{text"=";command proc{t=d.get;d.delete(0,"end")
-d.insert("end",eval(t))};grid("row"=>r,"column"=>c)};Tk.mainloop### by mawe :) ###