#NEWLINE# def testCanScanDotOffsetSearchForward( self ) : #NEWLINE# #INDENT# scanner = Scanner ( '.+10/foobar/' ) #NEWLINE# tokens = list ( scanner . scan ( ) ) #NEWLINE# self . assertEqual ( [ TokenDot ( ) , TokenOffset ( [ 10 ] ) , TokenSearchForward ( 'foobar' ) , TokenEof ( ) ] , tokens ) #NEWLINE# self . assertEqual ( 12 , scanner . state . position )