aboutsummaryrefslogtreecommitdiff
path: root/teste.lua
diff options
context:
space:
mode:
authortomas <tomas>2004-11-01 15:27:13 +0000
committertomas <tomas>2004-11-01 15:27:13 +0000
commit4d5d1e75fa5950b39873b46b3ab21fd39028e4f1 (patch)
treee2597be505a2ddaa87479c4549f8a51bf93a6ff1 /teste.lua
parent3219f4618df9fa4f4a54d2d3bcc116380bafa217 (diff)
downloadluafilesystem-4d5d1e75fa5950b39873b46b3ab21fd39028e4f1.tar.gz
luafilesystem-4d5d1e75fa5950b39873b46b3ab21fd39028e4f1.tar.bz2
luafilesystem-4d5d1e75fa5950b39873b46b3ab21fd39028e4f1.zip
Pequenas correcoes nos valores de retorno de algumas funcoes.
Acrescimo do arquivo de testes.
Diffstat (limited to 'teste.lua')
-rw-r--r--teste.lua26
1 files changed, 0 insertions, 26 deletions
diff --git a/teste.lua b/teste.lua
deleted file mode 100644
index 556cab0..0000000
--- a/teste.lua
+++ /dev/null
@@ -1,26 +0,0 @@
1#!/usr/local/bin/lua -i
2
3require"lfs"
4
5print(lfs.version)
6
7function p ()
8 local fh = assert (io.open ("teste", 'r'))
9 assert (lfs.lock (fh, 'r'))
10 print (fh:read"*a")
11 fh:close ()
12end
13
14function wr ()
15 fh = assert (io.open ("teste", 'w'))
16 assert (lfs.lock (fh, 'w'))
17end
18
19function op ()
20 fh = assert (io.open ("teste", 'r'))
21 assert (lfs.lock (fh, 'r'))
22end
23
24function fw (x)
25 assert (fh:write (x))
26end