From 2d1df4714e2736dbde7855ddcd76b4c1de822fa5 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 23 Jan 2012 21:58:02 +1000 Subject: Added a big bunch of example lua scripts for testing the speed of lua compiling. --- LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/cf.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/cf.lua (limited to 'LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/cf.lua') diff --git a/LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/cf.lua b/LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/cf.lua new file mode 100644 index 0000000..8cda54b --- /dev/null +++ b/LuaSL/testLua/yueliang-0.4.1/test_lua/5.0/cf.lua @@ -0,0 +1,16 @@ +-- temperature conversion table (celsius to farenheit) + +for c0=-20,50-1,10 do + io.write("C ") + for c=c0,c0+10-1 do + io.write(string.format("%3.0f ",c)) + end + io.write("\n") + + io.write("F ") + for c=c0,c0+10-1 do + f=(9/5)*c+32 + io.write(string.format("%3.0f ",f)) + end + io.write("\n\n") +end -- cgit v1.1