Skip to content

Commit bf1a5cd

Browse files
committed
Reinstate === for prev test
1 parent 408c064 commit bf1a5cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/raw.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ function prev(o::Raw)
358358
k = findprev(!isspace, data, j)
359359
if isnothing(k) || length(String(o.data[o.pos + o.len + 1:end]))==0
360360
length(ctx.preserve_space)>0 && pop!(ctx.preserve_space) # pop the previous context
361-
return Raw(data) # RawDocument
361+
return Raw(data, ctx) # RawDocument
362362
end
363363
j = length(ctx.preserve_space) == 0 || !(ctx.preserve_space[end]) ? k : j
364364
c = Char(o.data[j])

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ end
116116
@test String(doc[end]) == "</catalog>"
117117

118118
@testset "next and prev" begin
119-
@test XML.prev(doc[1]) == data
119+
@test XML.prev(doc[1]) === data
120120
@test prev(data) === nothing
121121
@test XML.next(doc[end]) === nothing
122122

0 commit comments

Comments
 (0)