diff --git a/Project.toml b/Project.toml index 70071b11..6417a39f 100644 --- a/Project.toml +++ b/Project.toml @@ -3,7 +3,7 @@ name = "Polynomials" uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45" license = "MIT" author = "JuliaMath" -version = "1.1.0" +version = "1.1.1" [deps] Intervals = "d8418881-c3e1-53bb-8760-2df7ec849ed5" diff --git a/README.md b/README.md index 0b72330c..73164c15 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ Basic arithmetic, integration, differentiation, evaluation, and root finding over dense univariate polynomials. [![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaMath.github.io/Polynomials.jl/stable) -[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaMath.github.io/Polynomials.jl/dev) [![Build Status](https://travis-ci.org/JuliaMath/Polynomials.jl.svg?branch=master)](https://travis-ci.org/JuliaMath/Polynomials.jl) [![codecov](https://codecov.io/gh/JuliaMath/Polynomials.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaMath/Polynomials.jl) diff --git a/src/common.jl b/src/common.jl index d69000ef..17e2aa5b 100644 --- a/src/common.jl +++ b/src/common.jl @@ -90,7 +90,7 @@ fit(P::Type{<:AbstractPolynomial}, y, deg::Integer = length(x) - 1; weights = nothing, - var = :x,) = fit'(P, promote(collect(x), collect(y))..., deg; weights = weights, var = var) + var = :x,) = fit′(P, promote(collect(x), collect(y))..., deg; weights = weights, var = var) # avoid issue 214 fit′(P::Type{<:AbstractPolynomial}, x, y, args...;kwargs...) = throw(MethodError("x and y do not produce abstract vectors")) diff --git a/test/StandardBasis.jl b/test/StandardBasis.jl index f116dc3e..41b3f1ef 100644 --- a/test/StandardBasis.jl +++ b/test/StandardBasis.jl @@ -290,6 +290,9 @@ end @test_throws MethodError fit(Polynomial, rand(2,2), rand(2,2)) end + + # test default (issue #228) + fit(1:3, rand(3)) end @testset "Values" begin