Ignore:
Timestamp:
02/17/06 17:39:52 (9 years ago)
Author:
xi
Message:

Working on the scanner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pyyaml3000/tests/test_marker.py

    r46 r47  
    2020                index += 1 
    2121            marker = Marker(test_name, line, column, unicode(input), index) 
    22             snippet = marker.get_snippet() 
     22            snippet = marker.get_snippet(indent=2, max_length=79) 
    2323            #print "INPUT:" 
    2424            #print input 
     
    2626            #print snippet 
    2727            self.failUnless(isinstance(snippet, str)) 
    28             self.failUnlessEqual(snippet.count('\n'), 2) 
    29             data, pointer, dummy = snippet.split('\n') 
    30             self.failUnless(len(data) < 80) 
     28            self.failUnlessEqual(snippet.count('\n'), 1) 
     29            data, pointer = snippet.split('\n') 
     30            self.failUnless(len(data) < 82) 
    3131            self.failUnlessEqual(data[len(pointer)-1], '*') 
    3232 
Note: See TracChangeset for help on using the changeset viewer.