Changeset 35

Show
Ignore:
Timestamp:
26/10/04 00:16:55 (4 years ago)
Author:
chris
Message:

Added a failing test. Doesn't handle large regex matches.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/airspeed_test.py

    r34 r35  
    409409        template = airspeed.Template('#macro(hi $person)$person says hello#end#set($hello="#hi($name)")$hello') 
    410410        self.assertEquals("Steve says hello", template.merge({'name':'Steve'})) 
     411 
     412    def test_large_areas_of_text_handled_without_error(self): 
     413        text = "qwerty uiop asdfgh jkl zxcvbnm. 1234" 
     414        for count in range(1,20): 
     415            text = text + text 
     416            template = airspeed.Template(text) 
     417        self.assertEquals(text, template.merge({})) 
    411418 
    412419#