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