Skip to content

Commit 5eeaf22

Browse files
authored
Test gradedrange constructor with SectorProduct passed as NamedTuple (#10)
1 parent ce027fd commit 5eeaf22

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SymmetrySectors"
22
uuid = "f8a8ad64-adbc-4fce-92f7-ffe2bb36a86e"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.1.3"
4+
version = "0.1.4"
55

66
[deps]
77
BlockArrays = "8e7c35d0-a365-5155-bbbb-fb81a777f24e"

test/test_sector_product.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using SymmetrySectors:
1313
quantum_dimension,
1414
arguments,
1515
trivial
16-
using GradedUnitRanges: dual, fusion_product, space_isequal, gradedrange
16+
using GradedUnitRanges: dual, fusion_product, space_isequal, gradedrange, sector_type
1717
using Test: @test, @testset, @test_throws
1818
using TestExtras: @constinferred
1919

@@ -309,6 +309,9 @@ end
309309
s1 = (A=U1(1),) × (B=Z{2}(0),)
310310
s2 = (A=U1(1),) × (C=Z{2}(0),)
311311
@test_throws ArgumentError s1 × s2
312+
313+
g = gradedrange([(Nf=U1(0),) => 2, (Nf=U1(1),) => 3])
314+
@test sector_type(g) <: SectorProduct
312315
end
313316

314317
@testset "Construct from Pairs" begin

0 commit comments

Comments
 (0)