def test_symbol_coercion():
    from datetime import date
    t = Symbol('t', 'var * {name: string, amount: int, timestamp: ?date}')
    assert (t.amount + '10').rhs == 10

    assert ('2014-12-01' < t.timestamp).rhs == date(2014, 12, 1)
dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_symbol.py/test_symbol_coercion/swapped operands of `<`