fix python QA tests to run with latest changes in eda_angle.h
This commit is contained in:
parent
380cb452b2
commit
1c8ba6dafc
|
@ -156,6 +156,9 @@ typedef long time_t;
|
|||
%include math.i
|
||||
%template(VECTOR_VECTOR2I) std::vector<VECTOR2I>;
|
||||
|
||||
#include <geometry/eda_angle.h>
|
||||
%include <geometry/eda_angle.h>
|
||||
|
||||
// ignore warning from nested classes
|
||||
#pragma SWIG nowarn=325
|
||||
#include <geometry/shape_line_chain.h>
|
||||
|
|
|
@ -20,7 +20,8 @@ class TestTracks(unittest.TestCase):
|
|||
self.assertEqual(13, len(arcs))
|
||||
arc = sorted(arcs, key=lambda t: [t.GetStart()[0], t.GetStart()[1]])[0]
|
||||
self.assertEqual([29414211, 26499999], [arc.GetCenter()[0], arc.GetCenter()[1]])
|
||||
self.assertEqual([1800, 2250], [round(arc.GetArcAngleStart()), round(arc.GetArcAngleEnd())])
|
||||
self.assertEqual([1800, 2250], [round(arc.GetArcAngleStart().AsTenthsOfADegree()),
|
||||
round(arc.GetArcAngleEnd().AsTenthsOfADegree())])
|
||||
self.assertEqual(2414211, round(arc.GetRadius()))
|
||||
|
||||
def test_vias(self):
|
||||
|
|
Loading…
Reference in New Issue