def is_nth_bit_is_set(n: int, i: int) -> bool:
    """
    Test if the n-th bit is set.

    >>> is_nth_bit_is_set(0b1010, 0)
    False
    >>> is_nth_bit_is_set(0b1010, 1)
    True
    >>> is_nth_bit_is_set(0b1010, 3)
    True
    >>> is_nth_bit_is_set(0b1010, 5)
    False
    """
    return bool(n & (1 << i))