Skip to content

Commit 0c6f7e5

Browse files
committed
housekeeping
1 parent 0953484 commit 0c6f7e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

NDTensors/src/lib/BlockSparseArrays/ext/BlockSparseArraysGradedAxesExt/test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
205205
end
206206

207207
# Test case when all axes are dual.
208-
@testset "dual BlockedOneTo" begin
209-
r = gradedrange([U1(0) => 2, U1(1) => 2])
208+
@testset "dual GradedOneTo" begin
209+
r = gradedrange([U1(-1) => 2, U1(1) => 2])
210210
a = BlockSparseArray{elt}(dual(r), dual(r))
211211
@views for i in [Block(1, 1), Block(2, 2)]
212212
a[i] = randn(elt, size(a[i]))

NDTensors/src/lib/GradedAxes/src/gradedunitrange.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct GradedOneTo{T,BlockLasts<:Vector{T}} <: AbstractGradedUnitRange{T,BlockLa
5353
end
5454
end
5555

56-
function Base.show(io::IO, mimetype::MIME"text/plain", g::AbstractGradedUnitRange)
56+
function Base.show(io::IO, ::MIME"text/plain", g::AbstractGradedUnitRange)
5757
v = map(b -> label(b) => unlabel(b), blocks(g))
5858
println(io, typeof(g))
5959
return print(io, join(repr.(v), '\n'))

0 commit comments

Comments
 (0)