diff options
| author | carregal <carregal> | 2008-03-10 15:28:50 +0000 |
|---|---|---|
| committer | carregal <carregal> | 2008-03-10 15:28:50 +0000 |
| commit | 0154141e3fdafb69426035f5e1d949d58ddc58e9 (patch) | |
| tree | 1c68fc4f4c358b290c310cfdfa740f223b7ff599 | |
| parent | bb9cf83617a492d003debc0c140bcfaf598a63b5 (diff) | |
| download | luafilesystem-0154141e3fdafb69426035f5e1d949d58ddc58e9.tar.gz luafilesystem-0154141e3fdafb69426035f5e1d949d58ddc58e9.tar.bz2 luafilesystem-0154141e3fdafb69426035f5e1d949d58ddc58e9.zip | |
Fixed bug in the Windows tests (patch by Shmuel Zeigerman)
| -rw-r--r-- | tests/test.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test.lua b/tests/test.lua index 4c09020..882838b 100644 --- a/tests/test.lua +++ b/tests/test.lua | |||
| @@ -80,10 +80,10 @@ end | |||
| 80 | if lfs.setmode then | 80 | if lfs.setmode then |
| 81 | -- Checking text/binary modes (works only in Windows) | 81 | -- Checking text/binary modes (works only in Windows) |
| 82 | local f = io.open(tmpfile, "w") | 82 | local f = io.open(tmpfile, "w") |
| 83 | local mode = lfs.setmode(f, "binary") | 83 | local result, mode = lfs.setmode(f, "binary") |
| 84 | assert(mode == "text") | 84 | assert(result and mode == "text") |
| 85 | mode = lfs.setmode(f, "text") | 85 | result, mode = lfs.setmode(f, "text") |
| 86 | assert(mode == "binary") | 86 | assert(result and mode == "binary") |
| 87 | f:close() | 87 | f:close() |
| 88 | end | 88 | end |
| 89 | 89 | ||
