removed dependency for docile, doctests are now done using juliadoc

This commit is contained in:
Jukka Aho
2015-10-20 23:31:15 +03:00
parent 9e6fc14a39
commit 5d8a119c40
4 changed files with 16 additions and 11 deletions
+6 -5
View File
@@ -1,4 +1,5 @@
using Docile, Lexicon, JuliaFEM using JuliaFEM
using Lexicon
include("badges.jl") include("badges.jl")
@@ -42,10 +43,10 @@ cd(dirname(@__FILE__)) do
for m in modules for m in modules
s = doctest(m) s = doctest(m)
lnpassed, lnfailed, lnskipped = map(length, (passed(s), failed(s), skipped(s))) lnpassed, lnfailed, lnskipped = map(length, (passed(s), failed(s), skipped(s)))
npassed += lnpassed npassed += lnpassed
nfailed += lnfailed nfailed += lnfailed
nskipped += lnskipped nskipped += lnskipped
end end
println("""DOCTEST: {"failed": $nfailed, "skipped": $nskipped, "passed": $npassed}""")
make_badge("doctests", npassed, (npassed+nfailed+nskipped), "badges/doctests-status.svg") make_badge("doctests", npassed, (npassed+nfailed+nskipped), "badges/doctests-status.svg")
end end
+10 -2
View File
@@ -7,8 +7,16 @@ using Lexicon
using Logging using Logging
@Logging.configure(level=DEBUG) @Logging.configure(level=DEBUG)
""" """ Simple linspace extension to arrays.
Simple linspace extension to multidimensional values. Contribute to julialang?
Examples
--------
>>> linspace([0.0], [1.0], 3)
3-element Array{Array{Float64,1},1}:
[0.0]
[0.5]
[1.0]
""" """
function Base.linspace(X1, X2, n) function Base.linspace(X1, X2, n)
[1/2*(1-ti)*X1 + 1/2*(1+ti)*X2 for ti in linspace(-1, 1, n)] [1/2*(1-ti)*X1 + 1/2*(1+ti)*X2 for ti in linspace(-1, 1, n)]
-2
View File
@@ -8,8 +8,6 @@ using ForwardDiff
using Logging using Logging
@Logging.configure(level=INFO) @Logging.configure(level=INFO)
VERSION < v"0.4-" && using Docile
# Below this line is internal functions related to solver. They can be used # Below this line is internal functions related to solver. They can be used
# directly if needed or using general interface combining data model and # directly if needed or using general interface combining data model and
# solver. # solver.
-2
View File
@@ -6,8 +6,6 @@ module interfaces
using Logging using Logging
@Logging.configure(level=DEBUG) @Logging.configure(level=DEBUG)
VERSION < v"0.4-" && using Docile
#using JuliaFEM.elasticity_solver #using JuliaFEM.elasticity_solver
export solve_elasticity_interface! export solve_elasticity_interface!