mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-15 15:20:37 -08:00
Fixed misplaced label for vertical dimension lines Issue #915
This commit is contained in:
parent
878a737516
commit
644200f565
2 changed files with 7 additions and 2 deletions
|
|
@ -260,6 +260,11 @@ class DimensionLineTestCase(unittest.TestCase):
|
|||
with self.assertRaises(ValueError):
|
||||
DimensionLine([(0, 0, 0), (5, 0, 0)], draft=metric, arrows=(False, False))
|
||||
|
||||
def test_vertical(self):
|
||||
d_line = DimensionLine([(0, 0), (0, 100)], Draft())
|
||||
bbox = d_line.bounding_box()
|
||||
self.assertAlmostEqual(bbox.size.Y, 100, 5) # numbers within
|
||||
|
||||
|
||||
class ExtensionLineTestCase(unittest.TestCase):
|
||||
def test_min_x(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue