Skip to content

Commit 30ecd64

Browse files
authored
Test on Julia v1.11-rc (#455)
* Test on Julia v1.11-rc * Update test_broadcasting.jl
1 parent e9d199c commit 30ecd64

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
version:
4141
- 'lts'
4242
- '1'
43+
- 'pre'
4344
os:
4445
- ubuntu-latest
4546
- macOS-latest

test/test_broadcasting.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,16 @@ Random.seed!(0)
156156
end
157157

158158
B .= 2.0.*A
159-
@test B == 2A == 2.0.*A
159+
@test norm(B-2A) == 0
160+
@test B == 2A == 2.0.*A
160161
@test 2A isa BandedMatrix
161162
@test 2.0.*A isa BandedMatrix
162163
@test bandwidths(2A) == bandwidths(2.0.*A) == bandwidths(A)
163164

164165
A .= 2.0.*A
165166
@test A == B
166167

167-
B .= A.*2.0
168+
B .= A .* 2.0
168169
@test B == A*2 == A.*2.0
169170
@test A*2 isa BandedMatrix
170171
@test A .* 2.0 isa BandedMatrix

0 commit comments

Comments
 (0)