<s> '''<STR_LIT>''' <EOL> import math <EOL> from TFSTest import TFSTest <EOL> from tfs . common . TFSPoint import TFSPoint , TFSPoint0 <EOL> from tfs . common . TFSSegment import TFSSegment <EOL> from tfs . common . TFSPath import TFSPath , openPathWithPoints , debugPaths <EOL> from tfs . common . TFSTesselation import TFSTesselation <EOL> class TFSTesselationTest ( TFSTest ) : <EOL> def setUp ( self ) : <EOL> pass <EOL> def test_subdividePathWithPaths ( self ) : <EOL> divided , intersections = TFSTesselation ( ) . subdividePathWithPaths ( [ openPathWithPoints ( TFSPoint ( <NUM_LIT:0> , <NUM_LIT:2> ) , <EOL> TFSPoint ( <NUM_LIT:4> , <NUM_LIT:2> ) ) , <EOL> openPathWithPoints ( TFSPoint ( <NUM_LIT:6> , <NUM_LIT:0> ) , <EOL> TFSPoint ( <NUM_LIT:6> , <NUM_LIT:4> ) ) , <EOL> ] ) <EOL> self . assertEqual ( len ( divided ) , <NUM_LIT:2> ) <EOL> self . assertEqual ( len ( intersections ) , <NUM_LIT:0> ) <EOL> divided , intersections = TFSTesselation ( ) . subdividePathWithPaths ( [ openPathWithPoints ( TFSPoint ( <NUM_LIT:0> , <NUM_LIT:2> ) , <EOL> TFSPoint ( <NUM_LIT:4> , <NUM_LIT:2> ) ) , <EOL> openPathWithPoints ( TFSPoint ( <NUM_LIT:2> , <NUM_LIT:0> ) , <EOL> TFSPoint ( <NUM_LIT:2> , <NUM_LIT:4> ) ) , <EOL> ] ) <EOL> self . assertEqual ( len ( divided ) , <NUM_LIT:4> ) <EOL> self . assertEqual ( len ( intersections ) , <NUM_LIT:1> ) <EOL> divided , intersections = TFSTesselation ( ) . subdividePathWithPaths ( [ openPathWithPoints ( TFSPoint ( <NUM_LIT:0> , <NUM_LIT:2> ) , <EOL> TFSPoint ( <NUM_LIT:4> , <NUM_LIT:2> ) ) , <EOL> openPathWithPoints ( TFSPoint ( <NUM_LIT:2> , <NUM_LIT:0> ) , <EOL> TFSPoint ( <NUM_LIT:2> , <NUM_LIT:4> ) ) , <EOL> openPathWithPoints ( TFSPoint ( <NUM_LIT:3> , <NUM_LIT:0> ) , <EOL> TFSPoint ( <NUM_LIT:3> , <NUM_LIT:4> ) ) , <EOL> ] ) <EOL> self . assertEqual ( len ( divided ) , <NUM_LIT:7> ) <EOL> self . assertEqual ( len ( intersections ) , <NUM_LIT:2> ) <EOL> divided , intersections = TFSTesselation ( ) . subdividePathWithPaths ( [ openPathWithPoints ( TFSPoint ( <NUM_LIT:0> , <NUM_LIT:2> ) , <EOL> TFSPoint ( <NUM_LIT:4> , <NUM_LIT:2> ) ) , <EOL> openPathWithPoints ( TFSPoint ( <NUM_LIT:0> , <NUM_LIT:1> ) , <EOL> TFSPoint ( <NUM_LIT:4> , <NUM_LIT:1> ) ) , <EOL> openPathWithPoints ( TFSPoint ( <NUM_LIT:2> , <NUM_LIT:0> ) , <EOL> TFSPoint ( <NUM_LIT:2> , <NUM_LIT:4> ) ) , <EOL> openPathWithPoints ( TFSPoint ( <NUM_LIT:3> , <NUM_LIT:0> ) , <EOL> TFSPoint ( <NUM_LIT:3> , <NUM_LIT:4> ) ) , <EOL> ] ) <EOL> self . assertEqual ( len ( divided ) , <NUM_LIT:12> ) <EOL> self . assertEqual ( len ( intersections ) , <NUM_LIT:4> ) <EOL> '''<STR_LIT>''' <EOL> divided , intersections = TFSTesselation ( ) . subdividePathWithPaths ( [ openPathWithPoints ( TFSPoint ( <NUM_LIT:0> , <NUM_LIT:2> ) , <EOL> TFSPoint ( <NUM_LIT:4> , <NUM_LIT:2> ) ) , <EOL> openPathWithPoints ( TFSPoint ( <NUM_LIT:4> , <NUM_LIT:2> ) , <EOL> TFSPoint ( <NUM_LIT:4> , <NUM_LIT:4> ) ) , <EOL> ] ) <EOL> self . assertEqual ( len ( divided ) , <NUM_LIT:2> ) <EOL> self . assertEqual ( len ( intersections ) , <NUM_LIT:0> ) </s>
