Skip to content

Commit

Permalink
Avoid multiple includes of "test/common.jl." (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimikage authored Apr 13, 2024
1 parent c010ff7 commit 6457345
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/fixed.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
include("common.jl")
if !isdefined(Main, :target)
include("common.jl")
end

function symbol_to_inttype(::Type{Fixed}, s::Symbol)
d = Dict(:i8 => Int8, :i16 => Int16, :i32 => Int32, :i64 => Int64, :i128 => Int128)
Expand Down
4 changes: 3 additions & 1 deletion test/normed.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
include("common.jl")
if !isdefined(Main, :target)
include("common.jl")
end

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

0 comments on commit 6457345

Please sign in to comment.