Skip to content

Commit af8856b

Browse files
committed
test: update hashconsing toggle tests to use symbolic expressions
1 parent 37bc17c commit af8856b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/hash_consing.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ end
133133

134134
@testset "Hashconsing can be toggled" begin
135135
SymbolicUtils.ENABLE_HASHCONSING[] = false
136-
name = gensym(:x)
137-
x1 = only(@eval @syms $name)
138-
x2 = only(@eval @syms $name)
136+
@syms a b
137+
x1 = a + b
138+
x2 = a + b
139139
@test x1 !== x2
140140
SymbolicUtils.ENABLE_HASHCONSING[] = true
141141
end

0 commit comments

Comments
 (0)