def test_var_indexing_lists(var):
    """Test that we can index into str, list or tuple vars.

    Args:
        var : The str, list or tuple base var.
    """
    # Test basic indexing.
    assert str(var[0]) == f"{var._js_expr}.at(0)"
    assert str(var[1]) == f"{var._js_expr}.at(1)"

    # Test negative indexing.
    assert str(var[-1]) == f"{var._js_expr}.at(-1)"
Test that we can index into str, list or tuple vars.

    Args:
        var : The str, list or tuple base var.
    
tests/units/test_var.py