Skip to content

Commit 6cea015

Browse files
committed
Avoid multiple includes of "test/common.jl." (JuliaMath#286)
1 parent a79eefb commit 6cea015

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/fixed.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
include("common.jl")
1+
if !isdefined(Main, :target)
2+
include("common.jl")
3+
end
24

35
function symbol_to_inttype(::Type{Fixed}, s::Symbol)
46
d = Dict(:i8 => Int8, :i16 => Int16, :i32 => Int32, :i64 => Int64, :i128 => Int128)

test/normed.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
include("common.jl")
1+
if !isdefined(Main, :target)
2+
include("common.jl")
3+
end
24

35
function symbol_to_inttype(::Type{Normed}, s::Symbol)
46
d = Dict(:i8 => UInt8, :i16 => UInt16, :i32 => UInt32, :i64 => UInt64, :i128 => UInt128)

0 commit comments

Comments
 (0)