Fix unit tests after crengine update (#3993)

This commit is contained in:
poire-z
2018-06-02 19:28:00 +02:00
committed by GitHub
parent 5871132c25
commit 14e77306b7
3 changed files with 10 additions and 6 deletions

View File

@@ -68,7 +68,7 @@ describe("Readertoc module", function()
end)
it("should get page left of chapter", function()
assert.truthy(toc:getChapterPagesLeft(10, 0) > 10)
assert.truthy(toc:getChapterPagesLeft(102, 0) > 10)
assert.truthy(toc:getChapterPagesLeft(100, 0) > 10)
assert.are.same(nil, toc:getChapterPagesLeft(200, 0))
end)
it("should get page done of chapter", function()