anki/pylib/tests/test_utils.py

11 lines
349 B
Python

# Copyright: Ankitects Pty Ltd and contributors
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
from anki.utils import int_version_to_str
def test_int_version_to_str():
assert int_version_to_str(23) == "2.1.23"
assert int_version_to_str(230900) == "23.09"
assert int_version_to_str(230901) == "23.09.1"