コード例 #1
0
def test_convert_SmSp_2():
    state = "000"
    value = oper.convert("S-S+", state, amps)
    assert value == 0
コード例 #2
0
def test_convert_SpSm_2():
    state = "000"
    value = oper.convert("S+S-", state, amps)
    assert value == 0
コード例 #3
0
def test_convert_SmSp_1():
    state = "101"
    value = oper.convert("S-S+", state, amps)
    assert value == 2
コード例 #4
0
def test_convert_SpSm_1():
    state = "101"
    value = oper.convert("S+S-", state, amps)
    assert value == 0.5
コード例 #5
0
def test_convert_SzSz_2():
    state = "011"
    value = oper.convert("SzSz", state, amps)
    assert value == 0
コード例 #6
0
def test_convert_SzSz_1():
    state = "101"
    value = oper.convert("SzSz", state, amps)
    assert value == -0.5
コード例 #7
0
def test_convert_S2S3_2():
    state = "011"
    value = oper.convert("S2S3", state, amps)
    assert value == 0.25
コード例 #8
0
def test_convert_S2S3_1():
    state = "101"
    value = oper.convert("S2S3", state, amps)
    assert value == -0.25