Skip to content

Commit 88d5410

Browse files
committed
close #227, close #228
1 parent 6ff4b25 commit 88d5410

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "Polynomials"
33
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
44
license = "MIT"
55
author = "JuliaMath"
6-
version = "1.1.0"
6+
version = "1.1.1"
77

88
[deps]
99
Intervals = "d8418881-c3e1-53bb-8760-2df7ec849ed5"

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Basic arithmetic, integration, differentiation, evaluation, and root finding over dense univariate polynomials.
44

55
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaMath.github.io/Polynomials.jl/stable)
6-
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaMath.github.io/Polynomials.jl/dev)
76
[![Build Status](https://travis-ci.org/JuliaMath/Polynomials.jl.svg?branch=master)](https://travis-ci.org/JuliaMath/Polynomials.jl)
87
[![codecov](https://codecov.io/gh/JuliaMath/Polynomials.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaMath/Polynomials.jl)
98

src/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fit(P::Type{<:AbstractPolynomial},
9090
y,
9191
deg::Integer = length(x) - 1;
9292
weights = nothing,
93-
var = :x,) = fit'(P, promote(collect(x), collect(y))..., deg; weights = weights, var = var)
93+
var = :x,) = fit(P, promote(collect(x), collect(y))..., deg; weights = weights, var = var)
9494

9595
# avoid issue 214
9696
fit′(P::Type{<:AbstractPolynomial}, x, y, args...;kwargs...) = throw(MethodError("x and y do not produce abstract vectors"))

test/StandardBasis.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ end
290290
@test_throws MethodError fit(Polynomial, rand(2,2), rand(2,2))
291291

292292
end
293+
294+
# test default (issue #228)
295+
fit(1:3, rand(3))
293296
end
294297

295298
@testset "Values" begin

0 commit comments

Comments
 (0)