Skip to content

Commit

Permalink
codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
apkille committed Jul 9, 2024
1 parent 6779846 commit ee42680
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_expand.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ using Test

@op A; @op B; @op C; @op D;

@testset "expand errors" begin
@test_throws ErrorException qexpand(X)
end

@testset "expand rules" begin
@test isequal(qexpand(commutator(A, B)), A*B - B*A)
@test isequal(qexpand(anticommutator(A, B)), A*B + B*A)
Expand Down
4 changes: 4 additions & 0 deletions test/test_pauli.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
using QuantumSymbolics
using Test

@testset "simplify errors" begin
@test_throws ErrorException qsimplify(X)
end

@testset "MulOperator tests" begin
@test isequal(qsimplify(X*X,rewriter=qsimplify_pauli), I)
@test isequal(qsimplify(Y*Y,rewriter=qsimplify_pauli), I)
Expand Down

0 comments on commit ee42680

Please sign in to comment.