def test_str_arith():
    rep = cs * 1
    assert isinstance(rep, Repeat)
    assert rep.lhs.isidentical(cs)
    assert rep.rhs == 1

    with pytest.raises(TypeError):
        cs * 1.5

    with pytest.raises(TypeError):
        cs * 'a'

    interp = cs % cs
    assert isinstance(interp, Interp)
    assert interp.lhs.isidentical(cs)
    assert interp.rhs.isidentical(cs)

    interp_lit = 'a' % cs
    assert isinstance(interp_lit, Interp)
    assert interp_lit.lhs.isidentical(cs)
    assert interp_lit.rhs == 'a'

    with pytest.raises(Exception):
        cs / 1

    with pytest.raises(Exception):
        cs // 1
dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_arithmetic.py/test_str_arith/swapped operands of `%`