Skip to content

Commit cafcf45

Browse files
committed
Fixing coverage.
1 parent f33e029 commit cafcf45

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

test/runtests.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ include("debugIO.jl")
1111
@testset "Test FlateDecode" begin
1212
@test begin
1313
filename="files/1.pdf"
14-
DEBUG && println(filename)
14+
println(filename)
1515
doc = pdDocOpen(filename)
16-
DEBUG && println(pdDocGetCatalog(doc))
16+
println(pdDocGetCatalog(doc))
1717
cosDoc = pdDocGetCosDoc(doc)
18-
DEBUG && map(println, cosDoc.trailer)
18+
map(println, cosDoc.trailer)
1919
info = pdDocGetInfo(doc)
2020
@assert info["Producer"] == "LibreOffice 5.3" && info["Creator"] == "Writer"
2121
@assert pdDocGetPageCount(doc) == 2
@@ -28,7 +28,7 @@ include("debugIO.jl")
2828
@assert length(buf) == 18669
2929
@assert length(pdPageGetContentObjects(page).objs)==190
3030
pdDocClose(doc)
31-
length(utilPrintOpenFiles())==0
31+
length(utilPrintOpenFiles()) == 0
3232
end
3333
end
3434

@@ -47,7 +47,7 @@ include("debugIO.jl")
4747
@assert length(buf) == 1021
4848
@assert length(pdPageGetContentObjects(page).objs)==1
4949
pdDocClose(doc)
50-
length(utilPrintOpenFiles())==0
50+
length(utilPrintOpenFiles()) == 0
5151
end
5252
end
5353

@@ -56,13 +56,13 @@ include("debugIO.jl")
5656
filename="3.pdf"
5757
DEBUG && println(filename)
5858
isfile(filename)||
59-
download("http://www.stillhq.com/pdfdb/000003/data.pdf",filename)
59+
download("http://www.stillhq.com/pdfdb/000003/data.pdf",filename)
6060
doc = pdDocOpen(filename)
6161
@assert pdDocGetPageCount(doc) == 30
6262
page = pdDocGetPage(doc, 1)
6363
@assert pdPageIsEmpty(page) == false
6464
pdDocClose(doc)
65-
length(utilPrintOpenFiles())==0
65+
length(utilPrintOpenFiles()) == 0
6666
end
6767
end
6868

@@ -77,14 +77,14 @@ include("debugIO.jl")
7777
npage= pdDocGetPageCount(doc)
7878
for i=1:npage
7979
page = pdDocGetPage(doc, i)
80-
if pdPageIsEmpty(page)==false
80+
if pdPageIsEmpty(page) == false
8181
pdPageGetContentObjects(page)
8282
end
8383
end
8484
finally
8585
pdDocClose(doc)
8686
end
87-
length(utilPrintOpenFiles())==0
87+
length(utilPrintOpenFiles()) == 0
8888
end
8989
end
9090

@@ -101,9 +101,9 @@ include("debugIO.jl")
101101
stm=get(obj)
102102
data=read(stm)
103103
close(stm)
104-
@assert length(data)==273
104+
@assert length(data) == 273
105105
pdDocClose(doc)
106-
length(utilPrintOpenFiles())==0
106+
length(utilPrintOpenFiles()) == 0
107107
end
108108
end
109109

@@ -146,7 +146,7 @@ include("debugIO.jl")
146146
@testset "Test read_string" begin
147147
@test begin
148148
DEBUG && PDFIO.Cos.parse_data("files/page5.txt")
149-
length(utilPrintOpenFiles())==0
149+
length(utilPrintOpenFiles()) == 0
150150
end
151151
end
152152

@@ -171,7 +171,7 @@ include("debugIO.jl")
171171
end
172172

173173
files=readdir(get_tempdir())
174-
@assert length(files)==0
174+
@assert length(files) == 0
175175
end
176176

177177
if isfile("pvt/pvttests.jl")

0 commit comments

Comments
 (0)