Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test gradedrange constructor with SectorProduct passed as NamedTuple #10

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SymmetrySectors"
uuid = "f8a8ad64-adbc-4fce-92f7-ffe2bb36a86e"
authors = ["ITensor developers <[email protected]> and contributors"]
version = "0.1.3"
version = "0.1.4"

[deps]
BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"
Expand Down
5 changes: 4 additions & 1 deletion test/test_sector_product.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ using SymmetrySectors:
quantum_dimension,
arguments,
trivial
using GradedUnitRanges: dual, fusion_product, space_isequal, gradedrange
using GradedUnitRanges: dual, fusion_product, space_isequal, gradedrange, sector_type
using Test: @test, @testset, @test_throws
using TestExtras: @constinferred

Expand Down Expand Up @@ -309,6 +309,9 @@ end
s1 = (A=U1(1),) × (B=Z{2}(0),)
s2 = (A=U1(1),) × (C=Z{2}(0),)
@test_throws ArgumentError s1 × s2

g = gradedrange([(Nf=U1(0),) => 2, (Nf=U1(1),) => 3])
@test sector_type(g) <: SectorProduct
end

@testset "Construct from Pairs" begin
Expand Down
Loading