kodev(minor): fix arg test

This commit is contained in:
Qingping Hou
2016-04-23 21:16:37 -07:00
parent 0166ff8add
commit eb71d29716
3 changed files with 4 additions and 3 deletions

View File

@@ -198,8 +198,8 @@ function UIManager:schedule(time, action)
break
end
else
-- for fairness, it's better to make p+1 is strictly less than p
-- might want to revisit here in the future
-- for fairness, it's better to make p+1 is strictly less than
-- p might want to revisit here in the future
break
end
until e < s

2
kodev
View File

@@ -4,7 +4,7 @@ CURDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function assert_ret_zero {
if [ $1 -ne 0 ]; then
if [ ! -z $2 ]; then
if [ ! -z "$2" ]; then
echo $2
fi
exit 1

View File

@@ -93,6 +93,7 @@ describe("Readersearch module", function()
assert.are.equal(13, count)
end)
end)
describe("search API for PDF documents", function()
local doc, search, paging
setup(function()