From 6fe722f323043907b368af2b413b07e6d51db00d Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Tue, 11 Jul 2017 14:11:48 -0400 Subject: [PATCH] Fix most of 0.7 depwarns Enable travis on 0.6 --- .travis.yml | 1 + src/colormaps.jl | 2 +- test/conversion.jl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7effcf52..dbda43d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ os: - linux julia: - 0.5 + - 0.6 - nightly notifications: email: false diff --git a/src/colormaps.jl b/src/colormaps.jl index a4d21693..25d08c66 100644 --- a/src/colormaps.jl +++ b/src/colormaps.jl @@ -139,7 +139,7 @@ function sequential_palette(h, pend=convert(LCHuv, dcolor) #multi-hue start point - p2l=100*(1.-w)+w*pstart.l + p2l = 100 * (1. - w) + w * pstart.l p2h=MixHue(w,h,pstart.h) p2c=min(MSC(p2h,p2l), w*s*pstart.c) p2=LCHuv(p2l,p2c,p2h) diff --git a/test/conversion.jl b/test/conversion.jl index 5f27b3f1..6ba122b3 100644 --- a/test/conversion.jl +++ b/test/conversion.jl @@ -166,7 +166,7 @@ end # Test vector space operations import Base.full -full(T::Color) = map(x->getfield(T, x), fieldnames(T)) #Allow test to access numeric elements +full(T::Color) = map(x->getfield(T, x), fieldnames(typeof(T))) #Allow test to access numeric elements # Generated from: #= julia> for t in subtypes(ColorValue)