mirror of
https://github.com/shouptech/synthale.git
synced 2026-02-03 15:39:45 +00:00
13 lines
289 B
Python
13 lines
289 B
Python
"""Contains tests for the synthale.convert module."""
|
|
|
|
from synthale.convert import liters, gallons
|
|
|
|
|
|
def test_liters():
|
|
"""Test liters function."""
|
|
assert liters(1, '.1f') == '1.0 L'
|
|
|
|
|
|
def test_gallons():
|
|
"""Test gallons function."""
|
|
assert gallons(1, '.1f') == '0.3 gal'
|