Changeset 5328:7a4d437f9497 in livinglogic.python.xist for test/test_ul4.py

Show
Ignore:
Timestamp:
02/09/13 11:26:00 (7 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Add support for monthdelta/monthdelta and monthdelta//monthdelta.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/test_ul4.py

    r5322 r5328  
    10071007    assert "12:00:00" == r(code, x=datetime.timedelta(4), y=8) 
    10081008    assert "0:00:00.500000" == r(code, x=datetime.timedelta(0, 4), y=8) 
     1009    assert 2.0 == eval(r(code, x=datetime.timedelta(4), y=datetime.timedelta(2))) 
     1010    assert 2.0 == eval(r(code, x=misc.monthdelta(4), y=misc.monthdelta(2))) 
    10091011 
    10101012