kleine Änderungen
This commit is contained in:
parent
e81f83c294
commit
8dc1e67c91
|
@ -8,7 +8,7 @@ class Circle:
|
||||||
assert length >= 0, "length can not be negative"
|
assert length >= 0, "length can not be negative"
|
||||||
assert height >= 0, "height can not be negative"
|
assert height >= 0, "height can not be negative"
|
||||||
assert radius >= 0, "radius can not be negative"
|
assert radius >= 0, "radius can not be negative"
|
||||||
assert distance >= 2*radius, "distance must be grater den two times the radius"
|
assert distance >= 2*radius, "distance must be grater then two times the radius"
|
||||||
assert offset >= 0, "offset can only be 0 - 100 %"
|
assert offset >= 0, "offset can only be 0 - 100 %"
|
||||||
assert offset <= 100, "offset can only be 0 - 100 %"
|
assert offset <= 100, "offset can only be 0 - 100 %"
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ class Circle:
|
||||||
|
|
||||||
@distance.setter
|
@distance.setter
|
||||||
def distance(self, val):
|
def distance(self, val):
|
||||||
assert distance >= 2 * radius, "distance must be grater den two times the radius"
|
assert distance >= 2 * radius, "distance must be grater then two times the radius"
|
||||||
self.__distance = val
|
self.__distance = val
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue