diff --git a/frontend/ui/uimanager.lua b/frontend/ui/uimanager.lua index 3e113efb6..11520b30e 100644 --- a/frontend/ui/uimanager.lua +++ b/frontend/ui/uimanager.lua @@ -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 diff --git a/kodev b/kodev index bddd743b2..cf131c332 100755 --- a/kodev +++ b/kodev @@ -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 diff --git a/spec/unit/readersearch_spec.lua b/spec/unit/readersearch_spec.lua index 41c216850..64ad2cd26 100644 --- a/spec/unit/readersearch_spec.lua +++ b/spec/unit/readersearch_spec.lua @@ -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()