Changeset 5362:be58561b6623 in livinglogic.python.xist

Show
Ignore:
Timestamp:
02/20/13 10:50:05 (6 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Add tests for print and printx functions.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/test_ul4.py

    r5356 r5362  
    22532253    # Make sure that the parameters have the same name in all implementations 
    22542254    assert "None" == r("<?print repr(obj=data)?>", data=None) 
     2255 
     2256 
     2257@pytest.mark.ul4 
     2258def test_function_print(r): 
     2259    assert "gurk hurz hinz kunz" == r("<?code print('gurk', 'hurz', 'hinz', 'kunz')?>") 
     2260 
     2261 
     2262@pytest.mark.ul4 
     2263def test_function_printx(r): 
     2264    assert "&lt;gurk&gt; &lt;hurz&gt; &lt;hinz&gt; &lt;kunz&gt;" == r("<?code print('<gurk>', '<hurz>', '<hinz>', '<kunz>')?>") 
    22552265 
    22562266