Fixing a few bugs in preparation for sneak peek.

This commit is contained in:
Roland 2022-01-15 18:05:51 -07:00
parent 064147a769
commit 474e68cc3d
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
8 changed files with 119 additions and 20 deletions

View file

@ -277,7 +277,7 @@ def quantity_to_string(quantity: Quantity) -> str:
]
)
def test_compact_unit(quantity, expected):
# Round the result so we don't have to specify all those zeros for the test definition.
# Round the result, so we don't have to specify all those zeros for the test definition.
assert quantity_to_string(compact_unit(quantity)) == expected
@ -296,7 +296,7 @@ length = gallon.dimensionality
{(('grains',), oz.dimensionality): Decimal('1') * oz},
),
(
# The larger of the units is what is returned.
# The largest of the units is what is returned.
[
{'category': 'grains', 'count': Decimal('1'), 'item_size': Decimal('1'), 'unit': 'oz'},
{'category': 'grains', 'count': Decimal('1'), 'item_size': Decimal('1'), 'unit': 'lbs'},