Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for the issue #1928
[modules/shaper.git]
/
src
/
PythonAPI
/
Test
/
TestSketcherSetEqual.py
diff --git
a/src/PythonAPI/Test/TestSketcherSetEqual.py
b/src/PythonAPI/Test/TestSketcherSetEqual.py
index 49656292709c5e2bdb975ae7d76986d4b0c7f5e6..9ffdb877454ca9cff4af5aa104cf8c1e38881412 100644
(file)
--- a/
src/PythonAPI/Test/TestSketcherSetEqual.py
+++ b/
src/PythonAPI/Test/TestSketcherSetEqual.py
@@
-14,12
+14,12
@@
class SketcherSetEqual(SketcherTestCase):
model.do()
# Check the result
length_1 = math.sqrt(
model.do()
# Check the result
length_1 = math.sqrt(
- math.pow((l1.endPoint
Data().x() - l1.startPointData
().x()), 2) +
- math.pow((l1.endPoint
Data().y() - l1.startPointData
().y()), 2)
+ math.pow((l1.endPoint
().x() - l1.startPoint
().x()), 2) +
+ math.pow((l1.endPoint
().y() - l1.startPoint
().y()), 2)
)
length_2 = math.sqrt(
)
length_2 = math.sqrt(
- math.pow((l2.endPoint
Data().x() - l2.startPointData
().x()), 2) +
- math.pow((l2.endPoint
Data().y() - l2.startPointData
().y()), 2)
+ math.pow((l2.endPoint
().x() - l2.startPoint
().x()), 2) +
+ math.pow((l2.endPoint
().y() - l2.startPoint
().y()), 2)
)
self.assertAlmostEqual(length_1, length_2, delta=TestSketcher.DELTA)
)
self.assertAlmostEqual(length_1, length_2, delta=TestSketcher.DELTA)