diff options
author | tomas <tomas> | 2004-11-01 15:27:13 +0000 |
---|---|---|
committer | tomas <tomas> | 2004-11-01 15:27:13 +0000 |
commit | 4d5d1e75fa5950b39873b46b3ab21fd39028e4f1 (patch) | |
tree | e2597be505a2ddaa87479c4549f8a51bf93a6ff1 /teste.lua | |
parent | 3219f4618df9fa4f4a54d2d3bcc116380bafa217 (diff) | |
download | luafilesystem-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.lua | 26 |
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 | |||
3 | require"lfs" | ||
4 | |||
5 | print(lfs.version) | ||
6 | |||
7 | function p () | ||
8 | local fh = assert (io.open ("teste", 'r')) | ||
9 | assert (lfs.lock (fh, 'r')) | ||
10 | print (fh:read"*a") | ||
11 | fh:close () | ||
12 | end | ||
13 | |||
14 | function wr () | ||
15 | fh = assert (io.open ("teste", 'w')) | ||
16 | assert (lfs.lock (fh, 'w')) | ||
17 | end | ||
18 | |||
19 | function op () | ||
20 | fh = assert (io.open ("teste", 'r')) | ||
21 | assert (lfs.lock (fh, 'r')) | ||
22 | end | ||
23 | |||
24 | function fw (x) | ||
25 | assert (fh:write (x)) | ||
26 | end | ||