Skip to content

Commit dbb3ac3

Browse files
committed
don't rely on slot order in test
1 parent cf126a1 commit dbb3ac3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/breakpoints.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,13 @@ end
451451
f = JuliaInterpreter.enter_call(duplnames, (1,2))
452452
ex = JuliaInterpreter.prepare_slotfunction(f.framecode, :(i==1))
453453
@test ex isa Expr
454-
@test ex.args[end].args[end-1].args[1] == :i
454+
found = false
455+
for arg in ex.args[end].args
456+
if arg.args[1] == :i
457+
found = true
458+
end
459+
end
460+
@test found
455461
@test last(JuliaInterpreter.debug_command(f, :c)) isa BreakpointRef
456462
end
457463
end

0 commit comments

Comments
 (0)