@@ -11,11 +11,11 @@ include("debugIO.jl")
11
11
@testset " Test FlateDecode" begin
12
12
@test begin
13
13
filename= " files/1.pdf"
14
- DEBUG && println (filename)
14
+ println (filename)
15
15
doc = pdDocOpen (filename)
16
- DEBUG && println (pdDocGetCatalog (doc))
16
+ println (pdDocGetCatalog (doc))
17
17
cosDoc = pdDocGetCosDoc (doc)
18
- DEBUG && map (println, cosDoc. trailer)
18
+ map (println, cosDoc. trailer)
19
19
info = pdDocGetInfo (doc)
20
20
@assert info[" Producer" ] == " LibreOffice 5.3" && info[" Creator" ] == " Writer"
21
21
@assert pdDocGetPageCount (doc) == 2
@@ -28,7 +28,7 @@ include("debugIO.jl")
28
28
@assert length (buf) == 18669
29
29
@assert length (pdPageGetContentObjects (page). objs)== 190
30
30
pdDocClose (doc)
31
- length (utilPrintOpenFiles ())== 0
31
+ length (utilPrintOpenFiles ()) == 0
32
32
end
33
33
end
34
34
@@ -47,7 +47,7 @@ include("debugIO.jl")
47
47
@assert length (buf) == 1021
48
48
@assert length (pdPageGetContentObjects (page). objs)== 1
49
49
pdDocClose (doc)
50
- length (utilPrintOpenFiles ())== 0
50
+ length (utilPrintOpenFiles ()) == 0
51
51
end
52
52
end
53
53
@@ -56,13 +56,13 @@ include("debugIO.jl")
56
56
filename= " 3.pdf"
57
57
DEBUG && println (filename)
58
58
isfile (filename)||
59
- download (" http://www.stillhq.com/pdfdb/000003/data.pdf" ,filename)
59
+ download (" http://www.stillhq.com/pdfdb/000003/data.pdf" ,filename)
60
60
doc = pdDocOpen (filename)
61
61
@assert pdDocGetPageCount (doc) == 30
62
62
page = pdDocGetPage (doc, 1 )
63
63
@assert pdPageIsEmpty (page) == false
64
64
pdDocClose (doc)
65
- length (utilPrintOpenFiles ())== 0
65
+ length (utilPrintOpenFiles ()) == 0
66
66
end
67
67
end
68
68
@@ -77,14 +77,14 @@ include("debugIO.jl")
77
77
npage= pdDocGetPageCount (doc)
78
78
for i= 1 : npage
79
79
page = pdDocGetPage (doc, i)
80
- if pdPageIsEmpty (page)== false
80
+ if pdPageIsEmpty (page) == false
81
81
pdPageGetContentObjects (page)
82
82
end
83
83
end
84
84
finally
85
85
pdDocClose (doc)
86
86
end
87
- length (utilPrintOpenFiles ())== 0
87
+ length (utilPrintOpenFiles ()) == 0
88
88
end
89
89
end
90
90
@@ -101,9 +101,9 @@ include("debugIO.jl")
101
101
stm= get (obj)
102
102
data= read (stm)
103
103
close (stm)
104
- @assert length (data)== 273
104
+ @assert length (data) == 273
105
105
pdDocClose (doc)
106
- length (utilPrintOpenFiles ())== 0
106
+ length (utilPrintOpenFiles ()) == 0
107
107
end
108
108
end
109
109
@@ -146,7 +146,7 @@ include("debugIO.jl")
146
146
@testset " Test read_string" begin
147
147
@test begin
148
148
DEBUG && PDFIO. Cos. parse_data (" files/page5.txt" )
149
- length (utilPrintOpenFiles ())== 0
149
+ length (utilPrintOpenFiles ()) == 0
150
150
end
151
151
end
152
152
@@ -171,7 +171,7 @@ include("debugIO.jl")
171
171
end
172
172
173
173
files= readdir (get_tempdir ())
174
- @assert length (files)== 0
174
+ @assert length (files) == 0
175
175
end
176
176
177
177
if isfile (" pvt/pvttests.jl" )
0 commit comments