diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-30 18:53:10 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-30 18:53:10 +0000 |
| commit | a581d2333be87796e2758806d38880e3e2be8a78 (patch) | |
| tree | b790421957baf22e41d962a31ca92aed2e6201ae /test | |
| parent | 167727be3cefb3f45a26b0b1d96dc94a900a84b4 (diff) | |
| download | luasocket-a581d2333be87796e2758806d38880e3e2be8a78.tar.gz luasocket-a581d2333be87796e2758806d38880e3e2be8a78.tar.bz2 luasocket-a581d2333be87796e2758806d38880e3e2be8a78.zip | |
Releasing 2.0 alpha!!!
Diffstat (limited to 'test')
| -rw-r--r-- | test/testclnt.lua | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/testclnt.lua b/test/testclnt.lua index 20ef0b6..b58ca2b 100644 --- a/test/testclnt.lua +++ b/test/testclnt.lua | |||
| @@ -120,6 +120,7 @@ test_methods(socket.tcp(), { | |||
| 120 | "setsockname", | 120 | "setsockname", |
| 121 | "getpeername", | 121 | "getpeername", |
| 122 | "getsockname", | 122 | "getsockname", |
| 123 | "setoption", | ||
| 123 | "timeout", | 124 | "timeout", |
| 124 | "close", | 125 | "close", |
| 125 | }) | 126 | }) |
| @@ -133,6 +134,7 @@ test_methods(socket.udp(), { | |||
| 133 | "sendto", | 134 | "sendto", |
| 134 | "receive", | 135 | "receive", |
| 135 | "receivefrom", | 136 | "receivefrom", |
| 137 | "setoption", | ||
| 136 | "timeout", | 138 | "timeout", |
| 137 | "close", | 139 | "close", |
| 138 | }) | 140 | }) |
| @@ -162,21 +164,16 @@ remote "data:send(str); data:close()" | |||
| 162 | end | 164 | end |
| 163 | 165 | ||
| 164 | 166 | ||
| 165 | --test_mixed(1) | 167 | test_mixed(1) |
| 166 | --test_mixed(17) | 168 | test_mixed(17) |
| 167 | --test_mixed(200) | 169 | test_mixed(200) |
| 168 | --test_mixed(4091) | ||
| 169 | --test_mixed(80199) | ||
| 170 | --test_mixed(4091) | ||
| 171 | --test_mixed(200) | ||
| 172 | --test_mixed(17) | ||
| 173 | --test_mixed(1) | ||
| 174 | |||
| 175 | test_mixed(4091) | ||
| 176 | test_mixed(4091) | ||
| 177 | test_mixed(4091) | ||
| 178 | test_mixed(4091) | 170 | test_mixed(4091) |
| 171 | test_mixed(80199) | ||
| 179 | test_mixed(4091) | 172 | test_mixed(4091) |
| 173 | test_mixed(200) | ||
| 174 | test_mixed(17) | ||
| 175 | test_mixed(1) | ||
| 176 | |||
| 180 | ------------------------------------------------------------------------ | 177 | ------------------------------------------------------------------------ |
| 181 | test("character line") | 178 | test("character line") |
| 182 | reconnect() | 179 | reconnect() |
| @@ -203,6 +200,11 @@ test_asciiline(200) | |||
| 203 | test_asciiline(4091) | 200 | test_asciiline(4091) |
| 204 | test_asciiline(80199) | 201 | test_asciiline(80199) |
| 205 | test_asciiline(800000) | 202 | test_asciiline(800000) |
| 203 | test_asciiline(80199) | ||
| 204 | test_asciiline(4091) | ||
| 205 | test_asciiline(200) | ||
| 206 | test_asciiline(17) | ||
| 207 | test_asciiline(1) | ||
| 206 | 208 | ||
| 207 | ------------------------------------------------------------------------ | 209 | ------------------------------------------------------------------------ |
| 208 | test("binary line") | 210 | test("binary line") |
| @@ -479,9 +481,7 @@ function test_selectbugs() | |||
| 479 | pass("invalid input: ok") | 481 | pass("invalid input: ok") |
| 480 | end | 482 | end |
| 481 | 483 | ||
| 482 | -- test_selectbugs() | 484 | test_selectbugs() |
| 483 | |||
| 484 | |||
| 485 | 485 | ||
| 486 | 486 | ||
| 487 | test(string.format("done in %.2fs", socket.time() - start)) | 487 | test(string.format("done in %.2fs", socket.time() - start)) |
