diff options
| author | Mark Pulford <mark@kyne.com.au> | 2011-12-30 23:04:30 +1030 | 
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2011-12-30 23:04:30 +1030 | 
| commit | 155393d5bd801ce5dbd76020facecd9270679e94 (patch) | |
| tree | 652d98bf79cfaa22e5be107f27e4cbfb5ac91917 | |
| parent | 7df50b1bf55b10cbd4fd1f31e8a9f8ee0bf79df8 (diff) | |
| download | lua-cjson-155393d5bd801ce5dbd76020facecd9270679e94.tar.gz lua-cjson-155393d5bd801ce5dbd76020facecd9270679e94.tar.bz2 lua-cjson-155393d5bd801ce5dbd76020facecd9270679e94.zip | |
Display success when all tests pass
Diffstat (limited to '')
| -rwxr-xr-x | tests/test.lua | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/tests/test.lua b/tests/test.lua index 6a1a8a2..bb696a2 100755 --- a/tests/test.lua +++ b/tests/test.lua | |||
| @@ -247,9 +247,10 @@ end | |||
| 247 | 247 | ||
| 248 | local pass, total = run_test_summary() | 248 | local pass, total = run_test_summary() | 
| 249 | 249 | ||
| 250 | print(string.format("==> Summary: %d/%d tests failed", total - pass, total)) | 250 | if pass == total then | 
| 251 | 251 | print("==> Summary: all tests succeeded") | |
| 252 | if pass ~= total then | 252 | else | 
| 253 | print(string.format("==> Summary: %d/%d tests failed", total - pass, total)) | ||
| 253 | os.exit(1) | 254 | os.exit(1) | 
| 254 | end | 255 | end | 
| 255 | 256 | ||
