def test_bit_at_pos(A: int, pos: int) -> bool:
    """0-indexed, little endian

    Args:
        A:
        pos:

    Returns:

    Examples:
        >>> test_bit_at_pos(int("1001", 2), pos=0)
        True
        >>> test_bit_at_pos(int("1001", 2), pos=1)
        False
        >>> test_bit_at_pos(int("1001", 2), pos=2)
        False
        >>> test_bit_at_pos(int("1001", 2), pos=3)
        True
        >>> test_bit_at_pos(int("1001", 2), pos=4)
        False

    """
    return (A & 1 << pos) != 0