def test_rel2abs(): arc = [[0, 0], [1, 1]] coords = list(rel2abs(arc, (2.0, 2.0), (100.0, 100.0))) assert coords[0] == (100.0, 100.0) assert coords[1] == (102.0, 102.0)
def test_rel2abs_noscale(): arc = [[0, 0], [1, 1]] coords = list(rel2abs(arc, None, None)) assert coords[0] == (0, 0) assert coords[1] == (1, 1)