• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pabloferz / NIntegration.jl / 39

29 Jun 2017 - 3:09 coverage: 92.285% (-3.2%) from 95.495%
39

Pull #7

travis-ci

web-flow
Add support for julia v0.6.0
Pull Request #7: Add support for julia v0.6.0

10 of 18 new or added lines in 3 files covered. (55.56%)

6 existing lines in 1 file now uncovered.

311 of 337 relevant lines covered (92.28%)

1488.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0
/src/types-0.5.jl
1
type Box{T}
2
    x::T
3

NEW
4
    Box() = new()
!
NEW
5
    Box(x) = new(x)
!
6
end
NEW
7
(::Type{Box}){T}(x::T) = Box{T}(x)
!
8

9
immutable Region{N,T<:AbstractFloat,R}
10
    x::MVector{N,T} # center
11
    h::MVector{N,T} # half-width
12
    I::Box{R}
13
    E::Box{R}
14
    axis::Box{Int8}
15
end
NEW
16
(::Type{Region}){R,N,T}(::Type{R}, x::NTuple{N,T}, h::NTuple{N,T}) =
!
17
    Region{N,T,R}(MVector(x), MVector(h), Box{R}(), Box{R}(), Box(Int8(0)))
NEW
18
(::Type{Region}){N,T}(x::NTuple{N,T}, h::NTuple{N,T}) =
!
19
    Region{N,T,Float64}(MVector(x), MVector(h),
20
                        Box(0.0), Box(0.0), Box(Int8(0)))
21

NEW
22
Base.isless{N}(r���::Region{N}, r���::Region{N}) = isless(r���.E.x, r���.E.x)
!
NEW
23
Base.isequal{N}(r���::Region{N}, r���::Region{N}) = isequal(r���.E.x, r���.E.x)
!
24

NEW
25
Base.show(io::IO, r::Region) = print(io, '(', r.x, ", ", r.h, ')')
!
26

27
immutable Regions{R<:Region}
28
    v::Vector{R}
29
end
30

31
Base.size(r::Regions) = size(r.v)
!
32
Base.getindex(r::Regions, i::Int) = r.v[i]
!
33
Base.setindex!(r::Regions, v, i::Int) = (r.v[i] = v)
!
34

35
Base.show(io::IO, m::MIME"text/plain", r::Regions) = show(io, m, r.v)
!
36
Base.show(io::IO, r::Regions) =
!
37
    (n = length(r.v); print(io, n, " subregion", n == 1 ? "" : "s"))
38

39
immutable WPoints{N,T,R}
40
    w::Vector{R}
41
    p::Vector{SVector{N,T}}
42
end
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc