@@ -9,8 +9,6 @@ using FusionTensors:
99 data_matrix,
1010 domain_axes,
1111 FusionTensor,
12- checkaxes,
13- checkaxes_dual,
1412 codomain_axis,
1513 domain_axis,
1614 ndims_domain,
@@ -21,6 +19,8 @@ using GradedArrays:
2119 SectorProduct,
2220 TrivialSector,
2321 Z,
22+ checkspaces,
23+ checkspaces_dual,
2424 dual,
2525 flip,
2626 gradedrange,
@@ -54,11 +54,11 @@ include("setup.jl")
5454
5555 # getters
5656 @test data_matrix (ft1) == m
57- @test checkaxes ( axes (ft1), tuplemortar ((( g1,), (g2,)) ))
57+ @test axes (ft1) == FusionTensorAxes (( g1,), (g2,))
5858
5959 # misc
60- @test checkaxes (codomain_axes (ft1), (g1,))
61- @test checkaxes (domain_axes (ft1), (g2,))
60+ @test checkspaces (codomain_axes (ft1), (g1,))
61+ @test checkspaces (domain_axes (ft1), (g2,))
6262 @test ndims_codomain (ft1) == 1
6363 @test ndims_domain (ft1) == 1
6464 @test size (data_matrix (ft1)) == (6 , 5 )
@@ -86,42 +86,42 @@ include("setup.jl")
8686 @test ft2 != = ft1
8787 @test data_matrix (ft2) == data_matrix (ft1)
8888 @test data_matrix (ft2) != = data_matrix (ft1)
89- @test checkaxes (codomain_axes (ft2), codomain_axes (ft1))
90- @test checkaxes (domain_axes (ft2), domain_axes (ft1))
89+ @test checkspaces (codomain_axes (ft2), codomain_axes (ft1))
90+ @test checkspaces (domain_axes (ft2), domain_axes (ft1))
9191
9292 ft2 = deepcopy (ft1)
9393 @test ft2 != = ft1
9494 @test data_matrix (ft2) == data_matrix (ft1)
9595 @test data_matrix (ft2) != = data_matrix (ft1)
96- @test checkaxes (codomain_axes (ft2), codomain_axes (ft1))
97- @test checkaxes (domain_axes (ft2), domain_axes (ft1))
96+ @test checkspaces (codomain_axes (ft2), codomain_axes (ft1))
97+ @test checkspaces (domain_axes (ft2), domain_axes (ft1))
9898
9999 # similar
100100 ft2 = similar (ft1)
101101 @test isnothing (check_sanity (ft2))
102102 @test eltype (ft2) == Float64
103- @test checkaxes (codomain_axes (ft2), codomain_axes (ft1))
104- @test checkaxes (domain_axes (ft2), domain_axes (ft1))
103+ @test checkspaces (codomain_axes (ft2), codomain_axes (ft1))
104+ @test checkspaces (domain_axes (ft2), domain_axes (ft1))
105105
106106 ft3 = similar (ft1, ComplexF64)
107107 @test isnothing (check_sanity (ft3))
108108 @test eltype (ft3) == ComplexF64
109- @test checkaxes (codomain_axes (ft3), codomain_axes (ft1))
110- @test checkaxes (domain_axes (ft3), domain_axes (ft1))
109+ @test checkspaces (codomain_axes (ft3), codomain_axes (ft1))
110+ @test checkspaces (domain_axes (ft3), domain_axes (ft1))
111111
112112 @test_throws AssertionError similar (ft1, Int)
113113
114114 ft5 = similar (ft1, ComplexF32, ((g1, g1), (g2,)))
115115 @test isnothing (check_sanity (ft5))
116116 @test eltype (ft5) == ComplexF64
117- @test checkaxes (codomain_axes (ft5), (g1, g1))
118- @test checkaxes (domain_axes (ft5), (g2,))
117+ @test checkspaces (codomain_axes (ft5), (g1, g1))
118+ @test checkspaces (domain_axes (ft5), (g2,))
119119
120120 ft5 = similar (ft1, ComplexF32, tuplemortar (((g1, g1), (g2,))))
121121 @test isnothing (check_sanity (ft5))
122122 @test eltype (ft5) == ComplexF64
123- @test checkaxes (codomain_axes (ft5), (g1, g1))
124- @test checkaxes (domain_axes (ft5), (g2,))
123+ @test checkspaces (codomain_axes (ft5), (g1, g1))
124+ @test checkspaces (domain_axes (ft5), (g2,))
125125end
126126
127127@testset " More than 2 axes" begin
135135 ft = FusionTensor (m2, (g1, g2), (g3, g4))
136136
137137 @test data_matrix (ft) == m2
138- @test checkaxes (codomain_axes (ft), (g1, g2))
139- @test checkaxes (domain_axes (ft), (g3, g4))
138+ @test checkspaces (codomain_axes (ft), (g1, g2))
139+ @test checkspaces (domain_axes (ft), (g3, g4))
140140
141141 @test axes (ft) == FusionTensorAxes (tuplemortar (((g1, g2), (g3, g4))))
142142 @test ndims_codomain (ft) == 2
269269 @test isnothing (check_sanity (ad))
270270
271271 ft7 = FusionTensor {Float64} (undef, (g1,), (g2, g3, g4))
272- @test_throws DimensionMismatch ft7 + ft3
273- @test_throws DimensionMismatch ft7 - ft3
274- @test_throws DimensionMismatch ft7 * ft3
272+ @test_throws ArgumentError ft7 + ft3
273+ @test_throws ArgumentError ft7 - ft3
274+ @test_throws ArgumentError ft7 * ft3
275275end
276276
277277@testset " specific constructors" begin
0 commit comments