Skip to content

Commit b59ebb2

Browse files
committed
test isone
1 parent 5da692f commit b59ebb2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/multifusion.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Istr = TensorKitSectors.type_repr(I)
2323
@test one(C1) == leftone(M) == rightone(Mop)
2424
@test one(D1) == rightone(M) == leftone(Mop)
2525

26+
@test @constinferred(isone(C0))
27+
@test isone(D0)
28+
@test isone(C1) == isone(D1) == false
29+
@test isone(M) == isone(Mop) == false
30+
2631
@test eval(Meta.parse(sprint(show, s))) == s
2732
@test @constinferred(hash(s)) == hash(deepcopy(s))
2833
@constinferred dual(s)

0 commit comments

Comments
 (0)