Skip to content

Commit 1c5e32d

Browse files
authored
Change == test for deepcopy(::QuoteNode) (#694)
Nightly became more strict about equality among `QuoteNode`s (JuliaLang/julia#58661). This expands the comparison to circumvent Base's new behavior.
1 parent 3b14198 commit 1c5e32d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/interpret.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,8 @@ end
559559

560560
# https://github.com/JuliaDebug/JuliaInterpreter.jl/issues/154
561561
q = QuoteNode([1])
562-
@test @interpret deepcopy(q) == q
562+
qcopy = @interpret deepcopy(q)
563+
@test isa(qcopy, QuoteNode) && qcopy.value == q.value
563564

564565
# Check #args for builtins (#217)
565566
f217() = <:(Float64, Float32, Float16)

0 commit comments

Comments
 (0)