Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI
on:
- push
- push:
branches:
- main
- pull_request
jobs:
test:
Expand All @@ -11,7 +13,8 @@ jobs:
matrix:
version:
- '1.6'
- '^1.7.0-0'
- '1' # Latest stable release
- '^1.8.0-0'
os:
- ubuntu-latest
- macOS-latest
Expand Down
8 changes: 6 additions & 2 deletions test/applytests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ import ArrayLayouts: StridedLayout
@test copyto!(b, a) == a == b
@test copyto!(c, a) == a == c
@test copyto!(similar(a), a) == a
@test_throws ErrorException copyto!(c, Array(a))
if VERSION ≤ v"1.7.99"
@test_throws ErrorException copyto!(c, Array(a))
else
@test_throws Base.CanonicalIndexError copyto!(c, Array(a))
end
end

@testset "view" begin
Expand Down Expand Up @@ -95,4 +99,4 @@ import ArrayLayouts: StridedLayout
@test arguments(R) == (rot180(A), rot180(B))
@test R ≈ rot180(A*B)
end
end
end
6 changes: 3 additions & 3 deletions test/multests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -955,8 +955,8 @@ end
@test apply(*, Diagonal(Fill(2,10)), Fill(3,10)) ≡ Diagonal(Fill(2,10)) * Fill(3,10) ≡ Fill(6,10)
@test apply(*, Diagonal(Fill(2,10)), Fill(3,10,3)) ≡ Diagonal(Fill(2,10)) * Fill(3,10,3) ≡ Fill(6,10,3)
@test apply(*,Fill(3,10,10),Fill(3,10)) ≡ Fill(3,10,10) * Fill(3,10) ≡ Fill(90,10)
@test apply(*, Eye(10), Ones(10)) Ones(10)
@test apply(*, Eye(10), Eye(10)) Eye(10)
@test apply(*, Eye(10), Ones(10)) == Ones(10)
@test apply(*, Eye(10), Eye(10)) == Eye(10)
end

@testset "ApplyArray MulTest" begin
Expand Down Expand Up @@ -1161,4 +1161,4 @@ end
A = ApplyArray(*, [1 2; 3 4], [1 2; 3 4], [1 2; 3 4])
@test A[:,1] == Matrix(A)[:,1]
end
end
end
4 changes: 2 additions & 2 deletions test/paddedtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ paddeddata(a::PaddedPadded) = a
@test a .* v == v .* a

@test n .+ n ≡ Vcat(2,Zeros{Int}(3))
@test n .+ v v .+ n Vcat(2,1:3)
@test n .+ v == v .+ n == Vcat(2,1:3)
@test n .+ b == b .+ n
@test n .+ a == a .+ n
@test n .+ c == c .+ n
Expand Down Expand Up @@ -314,4 +314,4 @@ paddeddata(a::PaddedPadded) = a
c = cache(Zeros(4)); c[1] = 1
@test norm(a) ≡ LinearAlgebra.normInf(c) ≡ LinearAlgebra.norm2(c) ≡ LinearAlgebra.norm1(c) ≡ LinearAlgebra.normp(c,2) ≡ 1.0
end
end
end