Skip to content

Commit 30fbd88

Browse files
committed
Added type-checking for intfuncs tests
1 parent e6635fa commit 30fbd88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/intfuncs.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ end
125125
@test count_zeros(Int64(1)) == 63
126126

127127
@test factorial(3) == 6
128-
@test factorial(Int8(3)) == 6
128+
@test factorial(Int8(3)) === 6
129129
@test_throws DomainError factorial(-3)
130130
@test_throws DomainError factorial(Int8(-3))
131131

132132
@test isqrt(4) == 2
133133
@test isqrt(5) == 2
134-
@test isqrt(Int8(4)) == 2
135-
@test isqrt(Int8(5)) == 2
134+
@test isqrt(Int8(4)) === Int8(2)
135+
@test isqrt(Int8(5)) === Int8(2)
136136
# issue #4884
137137
@test isqrt(9223372030926249000) == 3037000498
138138
@test isqrt(typemax(Int128)) == parse(Int128,"13043817825332782212")

0 commit comments

Comments
 (0)