Skip to content

Commit 1023bc7

Browse files
authored
Merge pull request #91 from yuyichao/0.7
Fix test depwarns
2 parents 579652f + 2cf5abd commit 1023bc7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/fixed.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ end
7979
@test (-67.2 % T).i == round(Int, -67.2*512) % Int16
8080

8181
for T in [Fixed{Int8,7}, Fixed{Int16,8}, Fixed{Int16,10}]
82+
local T
8283
testapprox(T) # defined in ufixed.jl
8384
end
8485

@@ -97,6 +98,7 @@ acmp = Float64(a[1])*Float64(a[2])
9798

9899
x = Fixed{Int8,8}(0.3)
99100
for T in (Float16, Float32, Float64, BigFloat)
101+
local T
100102
y = convert(T, x)
101103
@test isa(y, T)
102104
end
@@ -118,6 +120,7 @@ str = String(take!(iob))
118120
@test eval(parse(str)) == x
119121

120122
for T in (Fixed{Int8,8}, Fixed{Int16,8}, Fixed{Int16,10}, Fixed{Int32,16})
123+
local T
121124
a = rand(T)
122125
@test isa(a, T)
123126
a = rand(T, (3, 5))

test/normed.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ r = reinterpret(N0f8, 0x01):reinterpret(N0f8, 0x01):reinterpret(N0f8, convert(UI
211211

212212
counter = 0
213213
for x in N0f8(0):eps(N0f8):N0f8(1)
214+
local x
214215
counter += 1
215216
end
216217
@test counter == 256

0 commit comments

Comments
 (0)