Changeset 3658:9a265761186d in livinglogic.python.xist

Show
Ignore:
Timestamp:
12/28/08 21:11:40 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Add tests for UL4 color methods lum, withlum, witha.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/test_ul4.py

    r3645 r3658  
    10151015 
    10161016 
     1017def test_method_lum(): 
     1018    check('True', u'<?print #fff.lum() == 1?>') 
     1019 
     1020 
     1021def test_method_withlum(): 
     1022    check('#fff', u'<?print #000.withlum(1)?>') 
     1023 
     1024 
     1025def test_method_witha(): 
     1026    check('#0063a82a', u'<?print repr(#0063a8.witha(42))?>') 
     1027 
     1028 
    10171029def test_render(): 
    10181030    t = ul4c.compile(u'<?print prefix?><?print data?><?print suffix?>')