Skip to content

Commit 428207e

Browse files
committed
Move constants out of testset
1 parent 769a89e commit 428207e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import Base.Checked: checked_mul
66

77
include("utils.jl")
88

9-
@testset "FixedPointDecimals" begin
10-
119
const SFD2 = FixedDecimal{Int16, 2}
1210
const SFD4 = FixedDecimal{Int16, 4}
1311
const FD1 = FixedDecimal{Int, 1}
@@ -72,6 +70,8 @@ function parse_int{T, f}(::Type{FD{T, f}}, val::AbstractString; ceil::Bool=false
7270
reinterpret(FD{T, f}, parse(T, val[1:(f + 1)]) + T(ceil))
7371
end
7472

73+
@testset "FixedPointDecimals" begin
74+
7575
# Basic tests for the methods created above
7676
@testset "alt" begin
7777
@test trunc_alt(FD2, 0.0) == FD2(0)

0 commit comments

Comments
 (0)