Skip to content

Commit

Permalink
Merge pull request #148 from JuliaDiff/mz/1.6
Browse files Browse the repository at this point in the history
Fix 1.6 CI
  • Loading branch information
mzgubic authored Mar 31, 2021
2 parents 5d823e1 + a13424d commit c319525
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/to_vec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@ end

@testset "Tuples" begin
test_to_vec((5, 4))
test_to_vec((5, randn(T, 5)); check_inferred = VERSION v"1.2")
# TODO remove "< 1.6" once https://github.com/JuliaLang/julia/issues/40277
test_to_vec((5, randn(T, 5)); check_inferred = VERSION v"1.2" && VERSION < v"1.6")
test_to_vec((randn(T, 4), randn(T, 4, 3, 2), 1); check_inferred = false)
test_to_vec((5, randn(T, 4, 3, 2), UpperTriangular(randn(T, 4, 4)), 2.5); check_inferred = VERSION v"1.2")
# TODO remove "< 1.6" once https://github.com/JuliaLang/julia/issues/40277
test_to_vec((5, randn(T, 4, 3, 2), UpperTriangular(randn(T, 4, 4)), 2.5); check_inferred = VERSION v"1.2" && VERSION < v"1.6")
test_to_vec(((6, 5), 3, randn(T, 3, 2, 0, 1)); check_inferred = false)
test_to_vec((DummyType(randn(T, 2, 7)), DummyType(randn(T, 3, 9))))
test_to_vec((DummyType(randn(T, 3, 2)), randn(T, 11, 8)))
Expand Down Expand Up @@ -157,7 +159,8 @@ end

@testset "Struct" begin
test_to_vec(Composite{ThreeFields}(; a=10.0, b=20.0, c=30.0))
test_to_vec(Composite{ThreeFields}(; a=10.0, b=20.0,))
# TODO remove "< 1.6" once https://github.com/JuliaLang/julia/issues/40277
test_to_vec(Composite{ThreeFields}(; a=10.0, b=20.0,), check_inferred = VERSION < v"1.6")
test_to_vec(Composite{ThreeFields}(; a=10.0, c=30.0))
test_to_vec(Composite{ThreeFields}(; c=30.0, a=10.0, b=20.0))
end
Expand Down

0 comments on commit c319525

Please sign in to comment.