mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-29 18:27:19 +02:00
15 lines
302 B
Python
15 lines
302 B
Python
"""
|
|
Test text generation.
|
|
"""
|
|
from roentgen.text import format_voltage
|
|
|
|
__author__ = "Sergey Vartanov"
|
|
__email__ = "me@enzet.ru"
|
|
|
|
|
|
def test_voltage() -> None:
|
|
"""
|
|
Test voltage tag value processing.
|
|
"""
|
|
assert format_voltage("42") == "42 V"
|
|
assert format_voltage("42000") == "42 kV"
|