def test_sequence(): data = alt.sequence(100) assert data.to_dict() == {'sequence': {'start': 0, 'stop': 100}} data = alt.sequence(5, 10) assert data.to_dict() == {'sequence': {'start': 5, 'stop': 10}} data = alt.sequence(0, 1, 0.1, as_='x') assert data.to_dict() == {'sequence': {'start': 0, 'stop': 1, 'step': 0.1, 'as': 'x'}}
def test_sequence(): data = alt.sequence(100) assert data.to_dict() == {"sequence": {"start": 0, "stop": 100}} data = alt.sequence(5, 10) assert data.to_dict() == {"sequence": {"start": 5, "stop": 10}} data = alt.sequence(0, 1, 0.1, as_="x") assert data.to_dict() == { "sequence": {"start": 0, "stop": 1, "step": 0.1, "as": "x"} }