Skip to content

Commit

Permalink
new test to highlight issue #757
Browse files Browse the repository at this point in the history
  • Loading branch information
RemDelaporteMathurin committed Mar 4, 2021
1 parent cf27ff1 commit cae0907
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/test_parametric_shapes/test_bug_757.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

import unittest

import pytest
from paramak import RotateSplineShape, ExtrudeSplineShape


class TestBug(unittest.TestCase):
def test_default_parameters(self):
"""Checks bug of issue #757."""
shape1 = RotateSplineShape(
points=[
(1.1 + 0, 0),
(1.1 + 0.5, 0),
(1.1 + 0.5, 0.5),
(1.1 + 0, 0.5),
],
rotation_angle=360
)

shape2 = ExtrudeSplineShape(
points=[
(0 + 1, 0),
(1 + 1, 0),
(1 + 1, 1),
(0 + 1, 1),
],
distance=0.5,
azimuth_placement_angle=0,
cut=shape1
)

shape2.solid

if __name__ == "__main__":
unittest.main()

0 comments on commit cae0907

Please sign in to comment.