Skip to content

Commit

Permalink
Merge pull request #91 from yuyichao/0.7
Browse files Browse the repository at this point in the history
Fix test depwarns
  • Loading branch information
timholy authored Sep 14, 2017
2 parents 579652f + 2cf5abd commit 1023bc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fixed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ end
@test (-67.2 % T).i == round(Int, -67.2*512) % Int16

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

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

x = Fixed{Int8,8}(0.3)
for T in (Float16, Float32, Float64, BigFloat)
local T
y = convert(T, x)
@test isa(y, T)
end
Expand All @@ -118,6 +120,7 @@ str = String(take!(iob))
@test eval(parse(str)) == x

for T in (Fixed{Int8,8}, Fixed{Int16,8}, Fixed{Int16,10}, Fixed{Int32,16})
local T
a = rand(T)
@test isa(a, T)
a = rand(T, (3, 5))
Expand Down
1 change: 1 addition & 0 deletions test/normed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ r = reinterpret(N0f8, 0x01):reinterpret(N0f8, 0x01):reinterpret(N0f8, convert(UI

counter = 0
for x in N0f8(0):eps(N0f8):N0f8(1)
local x
counter += 1
end
@test counter == 256
Expand Down

0 comments on commit 1023bc7

Please sign in to comment.