fix test_number_formatting tests and add cases (#7332)

This commit is contained in:
Esteban Dugueperoux
2025-11-11 18:25:00 +01:00
committed by GitHub
parent 25d3edc537
commit b8adddc648
2 changed files with 6 additions and 1 deletions
@@ -73,6 +73,10 @@ class TestFormat:
assert subject.format('imperial_length("3.123", 2)') == "3' - 1 1/2\""
assert subject.format('imperial_length("123.123", 2, "inch", "foot")') == "10' - 3\""
assert subject.format('imperial_length("123.123", 2, "inch", "inch")') == '123"'
assert subject.format('imperial_length(3.0, 4, "foot", "foot", true)') == "3'"
assert subject.format('imperial_length(3.0, 4, "foot", "foot", True)') == "3'"
assert subject.format('imperial_length(3.0, 4, "foot", "foot", false)') == "3' - 0\""
assert subject.format('imperial_length(3.0, 4, "foot", "foot", False)') == "3' - 0\""
class TestGetElementValue(test.bootstrap.IFC4):