#NEWLINE# def testExtents( self ) : #NEWLINE# #INDENT# toTest = [ 'x: 10' , 'x,10' , 'x; 10' , '( a )' , '()' ] #NEWLINE# toTest += [ '(position:(7, 2), height:3, down:"n")\n                        id_02262e745b84487792d8094c7d910de7:   "parameters:";\n\n                        (height:3, down:"daily_vol")\n                        n:    10000;\n\n                        (height:3, down:"lower_barrier")\n                        daily_vol:    .02;\n\n                        (width:41, height:3)\n                        lower_barrier:    .9;\n\n                        (position:(67, 2), width:41, height:3)\n                        id_e1c3ae8528a74b6a8084695de6f1dc42:   "pricing functions";\n\n                        (position:(67, 8), height:3, down:"cashflows_once")\n                        price_once:    fun(stock_price_process, option) {\n                                  let state = option.initialState;\n                                  let t = 0;\n                                  let pnl = 0.0;\n\n                                  for price in stock_price_process {\n                                    match (option.cashflowAndNextState(price, t, state)) with\n                                      (nothing) { return pnl; }\n                                      ((cashflow, nextState)) {\n                                        pnl = pnl + cashflow;\n                                        state = nextState;\n                                        };\n                                    t = t + 1\n                                    }\n                                  }\n                                  ;\n                        ' ] #NEWLINE# for text in toTest : #NEWLINE# #INDENT# self . walkNodesAndTestExtents ( ForaNative . SimpleParseNode . parse ( text ) , text )