Changeset 53 for trunk/airspeed_test.py
- Timestamp:
- 02/02/06 22:04:52 (3 years ago)
- Files:
-
- 1 modified
-
trunk/airspeed_test.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/airspeed_test.py
r52 r53 531 531 self.assertEquals('works', template.merge({}, loader=Loader())) 532 532 533 def test_modulus_operator(self): 534 template = airspeed.Template('#set( $modulus = ($value % 2) )$modulus') 535 self.assertEquals('1', template.merge({'value': 3})) 536 533 537 534 538 # … … 536 540 # 537 541 # Report locations for template errors in strings 538 # Math expressions 542 # Math expressions (requires operator precedence) 539 543 # Gobbling up whitespace (tricky!) 540 544 # Bind #macro calls at compile time? … … 544 548 # Q. What is scope of #set ($customer.Name = 'john') ??? 545 549 # Scope of #set across if/elseif/else? 546 # Scope of namespace for #parse etc547 550 # 548 551
