We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2b9b82 commit 4db4c12Copy full SHA for 4db4c12
tests/compas/test_tolerance.py
@@ -1,13 +1,19 @@
1
from compas.tolerance import TOL
2
+from compas.tolerance import Tolerance
3
from compas.geometry import Point
4
5
6
+def test_tolerance_default_tolerance():
7
+ TOL.precision == Tolerance.PRECISION
8
+
9
10
def test_tolerance_format_number():
11
assert TOL.format_number(0, precision=3) == "0.000"
12
assert TOL.format_number(0.5, precision=3) == "0.500"
13
assert TOL.format_number(float(0), precision=3) == "0.000"
14
- # Using default precision
15
16
+def test_tolerance_format_number_with_default_precision():
17
assert TOL.format_number(0) == "0.000"
18
assert TOL.format_number(0.5) == "0.500"
19
assert TOL.format_number(float(0)) == "0.000"
0 commit comments