mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
10 lines
349 B
Python
10 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"
|