Skip to content

Commit 54a29b6

Browse files
committed
Tests
1 parent 1427190 commit 54a29b6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/basics.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,9 @@ end
103103
@test repr(2/(2*a)) == "a^-1"
104104
@test repr(Term(*, [1, 1])) == "1*1"
105105
end
106+
107+
@testset "hash" begin
108+
@syms a b
109+
@test hash(a + b, UInt(0)) === hash(a + b) === hash(a + b, UInt(0)) # test caching
110+
@test hash(a + b, UInt(2)) !== hash(a + b)
111+
end

0 commit comments

Comments
 (0)