mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-23 22:16:25 +02:00
Rename test to tests; fix equator length.
This commit is contained in:
parent
f744c601d0
commit
ba26c1d4d7
19 changed files with 71 additions and 33 deletions
13
tests/test_text.py
Normal file
13
tests/test_text.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
"""
|
||||
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"
|
Loading…
Add table
Add a link
Reference in a new issue