We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c08bce commit a39c659Copy full SHA for a39c659
test/fixed32.jl
@@ -6,7 +6,7 @@ function test_fixed{T}(::Type{T}, f)
6
tol = 2.0^-f
7
8
for x in values
9
- #isinteger(x) && @show x
+ isinteger(x) && @show x
10
fx = convert(T,x)
11
@test convert(T,convert(Float64, fx)) == fx
12
@test convert(T,convert(Float64, -fx)) == -fx
@@ -45,5 +45,7 @@ function test_fixed{T}(::Type{T}, f)
45
end
46
47
for f in [8, 10, 16]
48
- test_fixed(Fixed32{f}, f)
+ T = Fixed32{f}
49
+ println(" Testing $T")
50
+ test_fixed(T, f)
51
test/runtests.jl
@@ -1,2 +1,4 @@
1
-include("fixed32.jl")
2
-include("ufixed.jl")
+for f in ["ufixed.jl", "fixed32.jl"]
+ println("Testing $f")
3
+ include(f)
4
+end
0 commit comments