mirror of
https://github.com/enzet/map-machine.git
synced 2025-04-30 02:37:24 +02:00
13 lines
295 B
Python
13 lines
295 B
Python
"""
|
|
Test text generation.
|
|
"""
|
|
from map_machine.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"
|