Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Jun 22, 2024
1 parent fe32cd6 commit 50b4511
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions NDTensors/src/lib/GradedAxes/test/test_basics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ using BlockArrays:
blocklength,
blocklengths,
blocks
using NDTensors.BlockSparseArrays: BlockSparseVector
using NDTensors.GradedAxes: GradedOneTo, GradedUnitRange, blocklabels, gradedrange
using NDTensors.LabelledNumbers: LabelledUnitRange, islabelled, label, labelled, unlabel
using Test: @test, @test_broken, @testset
Expand Down Expand Up @@ -159,14 +158,7 @@ using Test: @test, @test_broken, @testset

x = gradedrange(["x" => 2, "y" => 3, "z" => 4])
a = x[[Block(3), Block(2)]]
# This is a BlockSparseArray since BlockArray
# doesn't support axes with general integer
# element types. That is being fixed in:
# https://github.com/JuliaArrays/BlockArrays.jl/pull/405
# TODO: Change to `BlockVector` once we update
# `GradedAxes` once the axes of `BlockArray`
# are generalized.
@test a isa BlockSparseVector
@test a isa BlockVector
@test length(a) == 7
@test blocklength(a) == 2
# TODO: `BlockArrays` doesn't define `blocklengths`
Expand All @@ -187,14 +179,7 @@ using Test: @test, @test_broken, @testset

x = gradedrange(["x" => 2, "y" => 3, "z" => 4])
a = x[[Block(3)[2:3], Block(2)[2:3]]]
# This is a BlockSparseArray since BlockArray
# doesn't support axes with general integer
# element types. That is being fixed in:
# https://github.com/JuliaArrays/BlockArrays.jl/pull/405
# TODO: Change to `BlockVector` once we update
# `GradedAxes` once the axes of `BlockArray`
# are generalized.
@test a isa BlockSparseVector
@test a isa BlockVector
@test length(a) == 4
@test blocklength(a) == 2
# TODO: `BlockArrays` doesn't define `blocklengths`
Expand Down

0 comments on commit 50b4511

Please sign in to comment.