From 53fe1e41a52653235853ca967898b3ca15c76183 Mon Sep 17 00:00:00 2001 From: Mauro Werder Date: Wed, 2 Sep 2015 11:25:59 +0200 Subject: [PATCH] Updated package evaluator badge Also, a test is in place to be activated after fix of https://github.com/JuliaLang/julia/issues/12705 [ci skip] --- README.md | 5 ++++- test/runtests.jl | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e636d83..4f674ae 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,12 @@ # Parameters [![Build Status](https://travis-ci.org/mauro3/Parameters.jl.svg?branch=master)](https://travis-ci.org/mauro3/Parameters.jl) -[![Parameters](http://pkg.julialang.org/badges/Parameters_0.3.svg)](http://pkg.julialang.org/?pkg=Parameters&ver=release) [![Build Status](https://ci.appveyor.com/api/projects/status/github/mauro3/Parameters.jl?branch=master&svg=true)](https://ci.appveyor.com/project/mauro3/parameters-jl/branch/master) +[![Parameters](http://pkg.julialang.org/badges/Parameters_0.3.svg)](http://pkg.julialang.org/?pkg=Parameters&ver=0.3) +[![Parameters](http://pkg.julialang.org/badges/Parameters_0.4.svg)](http://pkg.julialang.org/?pkg=Parameters&ver=0.4) + + This is a package I use to handle numerical-model parameters, thus the name. However, it should be useful otherwise too. Its main feature is the macro `@with_kw` which decorates a type definition and creates: diff --git a/test/runtests.jl b/test/runtests.jl index 835b0ae..3cbfc38 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -5,11 +5,18 @@ using Base.Test ############### # parameter-less + +## Activate after fix of https://github.com/JuliaLang/julia/issues/12705 +# "Test documentation" @with_kw immutable MT1 r::Int = 4 c = "sdaf" end MT1() +# if VERSION >= v"0.4.0-dev" +# @test "Test documentation" = @doc MT1 +# end + # parameter-less @with_kw type MT2 @@ -222,3 +229,4 @@ a = 99 @test uu!=vv @test uu.a==99 @test vv.a==1 +