Format: application/x-python-code
⬇ Download File (1.0 KB)
   1  o
   2  
   3  ��h��@sdZdd�Zdd�ZdS)z�Simple example using doctests.
   4  
   5  This file just contains doctests both using plain python and IPython prompts.
   6  All tests should be loaded by Pytest.
   7  cC�dS)z�Some pure python tests...
   8  
   9      >>> pyfunc()
  10      'pyfunc'
  11  
  12      >>> import os
  13  
  14      >>> 2+3
  15      5
  16  
  17      >>> for i in range(3):
  18      ...     print(i, end=' ')
  19      ...     print(i+1, end=' ')
  20      ...
  21      0 1 1 2 2 3 
  22      �pyfunc�rrr�Sc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/testing/plugin/simple.pyr�rcCr)aSome IPython tests...
  23  
  24      In [1]: ipyfunc()
  25      Out[1]: 'ipyfunc'
  26  
  27      In [2]: import os
  28  
  29      In [3]: 2+3
  30      Out[3]: 5
  31  
  32      In [4]: for i in range(3):
  33         ...:     print(i, end=' ')
  34         ...:     print(i+1, end=' ')
  35         ...:
  36      Out[4]: 0 1 1 2 2 3
  37      �ipyfuncrrrrrrrrN)�__doc__rrrrrr�<module>s