Skip to content

Commit

Permalink
Add test case where syncs happen across in/out
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonReinhard committed Aug 13, 2024
1 parent 73c8518 commit 4d81797
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/interfaces/process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -275,4 +275,16 @@ end
@test incoming_multiplicity(proc) == 2
@test outgoing_multiplicity(proc) == 4
end

@testset "synced polarization across in and out particles" begin
proc = TestImplementation.TestProcessSP(
(ntuple(_ -> boson, 2)..., fermion),
(ntuple(_ -> boson, 2)..., fermion),
(ntuple(i -> SyncedPolarization{i}(), 2)..., SpinUp()),
(ntuple(i -> SyncedPolarization{i}(), 2)..., SpinDown()),
)
@test multiplicity(proc) == 4
@test incoming_multiplicity(proc) == 4
@test outgoing_multiplicity(proc) == 4
end
end

0 comments on commit 4d81797

Please sign in to comment.