Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_three_charge(PDGIDs):
assert three_charge(PDGIDs.Photon) == 0
assert three_charge(PDGIDs.Electron) == -3
assert three_charge(PDGIDs.jpsi) == 0
assert three_charge(PDGIDs.Upsilon_1S) == 0
assert three_charge(PDGIDs.KMinus) == -3
assert three_charge(PDGIDs.D0) == 0
assert three_charge(PDGIDs.Proton) == +3
assert three_charge(PDGIDs.LcPlus) == +3
assert three_charge(PDGIDs.Lb) == 0
assert three_charge(PDGIDs.DD1) == -2
assert three_charge(PDGIDs.SD0) == -2
assert three_charge(PDGIDs.Invalid1) == None
assert three_charge(PDGIDs.Invalid2) == None
def test_three_charge(PDGIDs):
assert three_charge(PDGIDs.Photon) == 0
assert three_charge(PDGIDs.Electron) == -3
assert three_charge(PDGIDs.jpsi) == 0
assert three_charge(PDGIDs.Upsilon_1S) == 0
assert three_charge(PDGIDs.KMinus) == -3
assert three_charge(PDGIDs.D0) == 0
assert three_charge(PDGIDs.Proton) == +3
assert three_charge(PDGIDs.LcPlus) == +3
assert three_charge(PDGIDs.Lb) == 0
assert three_charge(PDGIDs.DD1) == -2
assert three_charge(PDGIDs.SD0) == -2
assert three_charge(PDGIDs.Invalid1) == None
assert three_charge(PDGIDs.Invalid2) == None
def test_three_charge(PDGIDs):
assert three_charge(PDGIDs.Photon) == 0
assert three_charge(PDGIDs.Electron) == -3
assert three_charge(PDGIDs.jpsi) == 0
assert three_charge(PDGIDs.Upsilon_1S) == 0
assert three_charge(PDGIDs.KMinus) == -3
assert three_charge(PDGIDs.D0) == 0
assert three_charge(PDGIDs.Proton) == +3
assert three_charge(PDGIDs.LcPlus) == +3
assert three_charge(PDGIDs.Lb) == 0
assert three_charge(PDGIDs.DD1) == -2
assert three_charge(PDGIDs.SD0) == -2
assert three_charge(PDGIDs.Invalid1) == None
assert three_charge(PDGIDs.Invalid2) == None
def test_three_charge(PDGIDs):
assert three_charge(PDGIDs.Photon) == 0
assert three_charge(PDGIDs.Electron) == -3
assert three_charge(PDGIDs.jpsi) == 0
assert three_charge(PDGIDs.Upsilon_1S) == 0
assert three_charge(PDGIDs.KMinus) == -3
assert three_charge(PDGIDs.D0) == 0
assert three_charge(PDGIDs.Proton) == +3
assert three_charge(PDGIDs.LcPlus) == +3
assert three_charge(PDGIDs.Lb) == 0
assert three_charge(PDGIDs.DD1) == -2
assert three_charge(PDGIDs.SD0) == -2
assert three_charge(PDGIDs.Invalid1) == None
assert three_charge(PDGIDs.Invalid2) == None
def test_three_charge(PDGIDs):
assert three_charge(PDGIDs.Photon) == 0
assert three_charge(PDGIDs.Electron) == -3
assert three_charge(PDGIDs.jpsi) == 0
assert three_charge(PDGIDs.Upsilon_1S) == 0
assert three_charge(PDGIDs.KMinus) == -3
assert three_charge(PDGIDs.D0) == 0
assert three_charge(PDGIDs.Proton) == +3
assert three_charge(PDGIDs.LcPlus) == +3
assert three_charge(PDGIDs.Lb) == 0
assert three_charge(PDGIDs.DD1) == -2
assert three_charge(PDGIDs.SD0) == -2
assert three_charge(PDGIDs.Invalid1) == None
assert three_charge(PDGIDs.Invalid2) == None
def test_three_charge(PDGIDs):
assert three_charge(PDGIDs.Photon) == 0
assert three_charge(PDGIDs.Electron) == -3
assert three_charge(PDGIDs.jpsi) == 0
assert three_charge(PDGIDs.Upsilon_1S) == 0
assert three_charge(PDGIDs.KMinus) == -3
assert three_charge(PDGIDs.D0) == 0
assert three_charge(PDGIDs.Proton) == +3
assert three_charge(PDGIDs.LcPlus) == +3
assert three_charge(PDGIDs.Lb) == 0
assert three_charge(PDGIDs.DD1) == -2
assert three_charge(PDGIDs.SD0) == -2
assert three_charge(PDGIDs.Invalid1) == None
assert three_charge(PDGIDs.Invalid2) == None
def test_three_charge(PDGIDs):
assert three_charge(PDGIDs.Photon) == 0
assert three_charge(PDGIDs.Electron) == -3
assert three_charge(PDGIDs.jpsi) == 0
assert three_charge(PDGIDs.Upsilon_1S) == 0
assert three_charge(PDGIDs.KMinus) == -3
assert three_charge(PDGIDs.D0) == 0
assert three_charge(PDGIDs.Proton) == +3
assert three_charge(PDGIDs.LcPlus) == +3
assert three_charge(PDGIDs.Lb) == 0
assert three_charge(PDGIDs.DD1) == -2
assert three_charge(PDGIDs.SD0) == -2
assert three_charge(PDGIDs.Invalid1) == None
assert three_charge(PDGIDs.Invalid2) == None
def test_three_charge(PDGIDs):
assert three_charge(PDGIDs.Photon) == 0
assert three_charge(PDGIDs.Electron) == -3
assert three_charge(PDGIDs.jpsi) == 0
assert three_charge(PDGIDs.Upsilon_1S) == 0
assert three_charge(PDGIDs.KMinus) == -3
assert three_charge(PDGIDs.D0) == 0
assert three_charge(PDGIDs.Proton) == +3
assert three_charge(PDGIDs.LcPlus) == +3
assert three_charge(PDGIDs.Lb) == 0
assert three_charge(PDGIDs.DD1) == -2
assert three_charge(PDGIDs.SD0) == -2
assert three_charge(PDGIDs.Invalid1) == None
assert three_charge(PDGIDs.Invalid2) == None
def test_three_charge(PDGIDs):
assert three_charge(PDGIDs.Photon) == 0
assert three_charge(PDGIDs.Electron) == -3
assert three_charge(PDGIDs.jpsi) == 0
assert three_charge(PDGIDs.Upsilon_1S) == 0
assert three_charge(PDGIDs.KMinus) == -3
assert three_charge(PDGIDs.D0) == 0
assert three_charge(PDGIDs.Proton) == +3
assert three_charge(PDGIDs.LcPlus) == +3
assert three_charge(PDGIDs.Lb) == 0
assert three_charge(PDGIDs.DD1) == -2
assert three_charge(PDGIDs.SD0) == -2
assert three_charge(PDGIDs.Invalid1) == None
assert three_charge(PDGIDs.Invalid2) == None
def test_three_charge(PDGIDs):
assert three_charge(PDGIDs.Photon) == 0
assert three_charge(PDGIDs.Electron) == -3
assert three_charge(PDGIDs.jpsi) == 0
assert three_charge(PDGIDs.Upsilon_1S) == 0
assert three_charge(PDGIDs.KMinus) == -3
assert three_charge(PDGIDs.D0) == 0
assert three_charge(PDGIDs.Proton) == +3
assert three_charge(PDGIDs.LcPlus) == +3
assert three_charge(PDGIDs.Lb) == 0
assert three_charge(PDGIDs.DD1) == -2
assert three_charge(PDGIDs.SD0) == -2
assert three_charge(PDGIDs.Invalid1) == None
assert three_charge(PDGIDs.Invalid2) == None