Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(6)  |  Derive(0)  |  Import(1)

src/c/h/Chiplotle-0.4/chiplotle/tools/hpgltools/test/test_relativize.py   Chiplotle(Download)
from chiplotle import *
from chiplotle.hpgl.commands import *
from chiplotle.tools.hpgltools import relativize
 
def test_relativize_01( ):
   '''A sequence or PAs is converted into a sequence or PRs.'''
   t = [PA([(1, 1)]), PA([(2, 2)]), PA([(3, 2)])]
   r = relativize(t)
def test_relativize_02( ):
   '''Long PAs are converted to long PRs.'''
   t = [PA([(1, 1), (2, 3), (3, 2)])]
   r = relativize(t)
 
def test_relativize_03( ):
   '''Long PAs are converted to long PRs.'''
   t = [PA([(3, 2)]), PA([(1, 1), (2, 3), (3, 2)])]
   r = relativize(t)
 
def test_relativize_04( ):
   '''PUs and PDs are left alone.'''
   t = [PA([(1, 1)]), PU([(2, 2)]), PU([(3, 2)])]
   r = relativize(t)