Format: application/x-python-code
1 o
2
3 ��hN � @ s� d Z ddlZddlmZmZ dd� Zdd� Zdd � Zd
4 d� Zdd
5 � Z dd� Z
6 dd� Zdd� Zej
7 �deeedd��eedd�� dgd dgd ��dd� �ZdS )zTests for tokenutil� N)�token_at_cursor�line_at_cursorc C s� t ||�}d}|�� D ]}|t|� |kr n |t|�d 7 }q|| }d|d |� ||d � f }|| ks@J d| |||f ��d S )Nr � z%s|%sz#Expected %r, got %r in: %r (pos %i))r �
8 splitlines�len)�expected�cell�
9 cursor_pos�token�offset�line�columnZline_with_cursor� r �Xc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/utils/tests/test_tokenutil.py�expect_token s
10 �r c C s&